drm/i915/execlists: Cache the priolist when rescheduling
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 8 May 2018 00:30:46 +0000 (01:30 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 8 May 2018 08:24:22 +0000 (09:24 +0100)
commita02eb975be78171f66a47c103e57e7940d0860a7
tree483d8b739151344c1199f4c7504cb4d62ec4e7a6
parent87c7acf867700a9f32db81b227174bf83fecfde3
drm/i915/execlists: Cache the priolist when rescheduling

When rescheduling a change of dependencies, they all need to be added to
the same priolist (at least the ones on the same engine!). Since we
likely want to move a batch of requests, keep the priolist around.

v2: Throw in an assert to catch trivial errors quickly.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180508003046.2633-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_lrc.c