diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-03-03 16:06:25 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-03-03 23:57:36 +0000 |
commit | dd6f96dd4aeb48262d5af8a3006e6404521c151b (patch) | |
tree | 4fbbfd475eefa8423ce769b12cd9ae8d4be015d2 /src/drm/cairo-drm-i965-surface.c | |
parent | 3692597567f62dd300e8ce8c43d43ac449616041 (diff) |
drm/i965: Ignore flushing on device finish.
Diffstat (limited to 'src/drm/cairo-drm-i965-surface.c')
-rw-r--r-- | src/drm/cairo-drm-i965-surface.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drm/cairo-drm-i965-surface.c b/src/drm/cairo-drm-i965-surface.c index 59e975d6a..0e5ba2893 100644 --- a/src/drm/cairo-drm-i965-surface.c +++ b/src/drm/cairo-drm-i965-surface.c @@ -1660,6 +1660,9 @@ _i965_device_flush (cairo_drm_device_t *device) { cairo_status_t status; + if (unlikely (device->base.finished)) + return CAIRO_STATUS_SUCCESS; + status = cairo_device_acquire (&device->base); if (likely (status == CAIRO_STATUS_SUCCESS)) status = i965_device_flush ((i965_device_t *) device); |