]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Attach the fence to the object when making busy
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 29 Jun 2018 13:37:17 +0000 (14:37 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 29 Jun 2018 20:07:39 +0000 (21:07 +0100)
commit8596cc174d45cc1ba9d4d8bf14b9ab2659b9d007
tree557b1f301c9480901ac89174e054ed662c843f07
parent1a3218211f62caa2688b5f2eb5209d785e7f124d
drm/i915/selftests: Attach the fence to the object when making busy

make_obj_busy() makes a dummy busy object, but didn't attach the fence
to the reservation object, so it would not have registered as busy. For
completeness, attach the dummy request as the exclusive fence and mark
the object as written (in i915_vma_move_to_active)

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180629133717.11761-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/i915_gem_object.c