drm/i915/execlists: Skip redundant resubmission
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 3 Oct 2019 21:00:56 +0000 (22:00 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 4 Oct 2019 11:52:24 +0000 (12:52 +0100)
commit44d0a9c05bc078aef75229d0750e9c55959caae4
tree2969845fc29098dc54efa2b53751a75607628c26
parent3032c0b47e5f71a9a3c4c8e7bfa83d9005814510
drm/i915/execlists: Skip redundant resubmission

If we unwind the active requests, and on resubmission discover that we
intend to preempt the active contexts with themselves, simply skip the
ELSP submission.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191003210100.22250-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c