drm/i915: Reorder i915_add_request to separate the phases better
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 9 Sep 2016 13:11:55 +0000 (14:11 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 9 Sep 2016 13:23:05 +0000 (14:23 +0100)
commit0f25dff6e960c44c5e7d306ff3a3fdad5367a90e
treedf1affb1460a0680999105d5d93cbf8fb239f6f1
parent5590af3e115a9db11c5d6689ddd0d0053be4f4e0
drm/i915: Reorder i915_add_request to separate the phases better

Let's avoid mixing sealing the hardware commands for the request and
adding the request to the software tracking.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20160909131201.16673-15-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_request.c