On Tue, 19 Jul 2011 16:26:43 -0700, Keith Packard <kei...@keithp.com> wrote:
> Failing to pin a scanout buffer will most likely lead to a black
> screen, so if the GPU is wedged, then just let the pin happen and hope
> that things work out OK.

This doesn't prevent us returning an error should the wait-rendering abort
due to a GPU hang occurring in the middle of the wait.

i915_gem_object_pin_to_display_plane is used for more than just the
scanout, cursors and overlay are also included, otherwise we could just
ignore any errors. So,

/* Update the display engine regardless of any GPU hangs */
if (ret == -ERESTARTSYS)
        return ret;

-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to