drm/i915: Double check activity before relocations
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 4 Aug 2016 06:52:41 +0000 (07:52 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 4 Aug 2016 07:09:29 +0000 (08:09 +0100)
commit909d074c31713dd1c43e8c7665f9e42791c672b8
treee66424e2785d2784a2e16116c9b30655b902ddd6
parent776f32364d625305041e1760233c52fdb71d2563
drm/i915: Double check activity before relocations

If the object is active and we need to perform a relocation upon it, we
need to take the slow relocation path. Before we do, double check the
active requests to see if they have completed.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1470293567-10811-22-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_execbuffer.c