]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Move setting of request->batch into its single callsite
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 10 Aug 2016 12:41:46 +0000 (13:41 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 10 Aug 2016 15:07:52 +0000 (16:07 +0100)
commitceb6ca9012509e7f47e360e1057f4ceee89a7466
treebe87e4e27b4ad5f3d752818d05654ba9c06a6e12
parent48fea0fbdc90e8f4b4012c7ca3f6f43ab97e7118
drm/i915: Move setting of request->batch into its single callsite

request->batch_obj is only set by execbuffer for the convenience of
debugging hangs. By moving that operation to the callsite, we can
simplify all other callers and future patches. We also move the
complications of reference handling of the request->batch_obj next to
where the active tracking is set up for the request.

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/1470832906-13972-2-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_execbuffer.c
drivers/gpu/drm/i915/i915_gem_request.c
drivers/gpu/drm/i915/i915_gem_request.h