drm/i915/execlists: Track active elements during dequeue
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 11 Mar 2020 09:26:23 +0000 (09:26 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 11 Mar 2020 11:59:59 +0000 (11:59 +0000)
commit60ef5b7ac6a131f09d287a5f156c878c2c926a30
treec041b6dd2cfa833c7eb72bb184655eee263fb7ad
parent408464b4cbcf0a22ea8f96dab15d87a2f43ffed7
drm/i915/execlists: Track active elements during dequeue

Record the initial active element we use when building the next ELSP
submission, so that we can compare against it latter to see if there's
no change.

Fixes: 44d0a9c05bc0 ("drm/i915/execlists: Skip redundant resubmission")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200311092624.10012-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c