drm/i965: Ignore flushing on device finish.

This commit is contained in:
Chris Wilson 2010-03-03 16:06:25 +00:00
parent 3692597567
commit dd6f96dd4a

View file

@ -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);