drm/i915: Unwrap top level fence-array
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 3 May 2017 09:39:19 +0000 (10:39 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 3 May 2017 10:08:46 +0000 (11:08 +0100)
commit29ef3fa987edb9768e19a6325030e1d2d58e29de
treeeed50960f6fa8360bf5f756d70eee7984b3a16b5
parent9431282832e145237196a19f2464531eb9790240
drm/i915: Unwrap top level fence-array

By first unwrapping an incoming fence-array into its child fences, we
can simplify the internal branching, and so avoid triggering a potential
bug in the next patch when not squashing the child fences on the same
timeline.

It will also have the advantage of keeping the (top-level) fence arrays
out of any fence/timeline caching since these are unordered timelines
but with a random context id.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170503093924.5320-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_request.c