[cairo] [PATCH 30/71] drm: fixed calls to surface backend flush() operations
Enrico Weigelt, metux IT consult
enrico.weigelt at gr13.net
Mon Apr 17 16:57:09 UTC 2017
Signed-off-by: Enrico Weigelt, metux IT consult <enrico.weigelt at gr13.net>
---
src/drm/cairo-drm-i965-surface.c | 2 +-
src/drm/cairo-drm-intel-surface.c | 4 ++--
src/drm/cairo-drm-radeon-surface.c | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/drm/cairo-drm-i965-surface.c b/src/drm/cairo-drm-i965-surface.c
index 872bee4dc..b26e0c787 100644
--- a/src/drm/cairo-drm-i965-surface.c
+++ b/src/drm/cairo-drm-i965-surface.c
@@ -703,7 +703,7 @@ i965_surface_flush (void *abstract_surface, unsigned flags)
return CAIRO_STATUS_SUCCESS;
if (surface->intel.drm.fallback != NULL)
- return intel_surface_flush (abstract_surface);
+ return intel_surface_flush (&surface->intel, flags);
/* Forgo flushing on finish as the user cannot access the surface directly. */
if (! surface->intel.drm.base.finished &&
diff --git a/src/drm/cairo-drm-intel-surface.c b/src/drm/cairo-drm-intel-surface.c
index dd427bd8b..ac540f88e 100644
--- a/src/drm/cairo-drm-intel-surface.c
+++ b/src/drm/cairo-drm-intel-surface.c
@@ -89,7 +89,7 @@ intel_surface_acquire_source_image (void *abstract_surface,
goto DONE;
if (surface->drm.base.backend->flush != NULL) {
- status = surface->drm.base.backend->flush (surface);
+ status = surface->drm.base.backend->flush (surface, 0);
if (unlikely (status))
return status;
}
@@ -135,7 +135,7 @@ intel_surface_map_to_image (void *abstract_surface)
void *ptr;
if (surface->drm.base.backend->flush != NULL) {
- status = surface->drm.base.backend->flush (surface);
+ status = surface->drm.base.backend->flush (surface, 0);
if (unlikely (status))
return _cairo_surface_create_in_error (status);
}
diff --git a/src/drm/cairo-drm-radeon-surface.c b/src/drm/cairo-drm-radeon-surface.c
index d213df517..926b52416 100644
--- a/src/drm/cairo-drm-radeon-surface.c
+++ b/src/drm/cairo-drm-radeon-surface.c
@@ -84,7 +84,7 @@ radeon_surface_acquire_source_image (void *abstract_surface,
goto DONE;
if (surface->base.base.backend->flush != NULL) {
- status = surface->base.base.backend->flush (surface);
+ status = surface->base.base.backend->flush (surface, 0);
if (unlikely (status))
return status;
}
@@ -121,7 +121,7 @@ radeon_surface_map_to_image (radeon_surface_t *surface)
void *ptr;
if (surface->base.base.backend->flush != NULL) {
- status = surface->base.base.backend->flush (surface);
+ status = surface->base.base.backend->flush (surface, 0);
if (unlikely (status))
return _cairo_surface_create_in_error (status);
}
--
2.11.0.rc0.7.gbe5a750
More information about the cairo
mailing list