]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Fixup a missing legacy_idx
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 8 Aug 2019 19:45:25 +0000 (20:45 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 8 Aug 2019 19:53:31 +0000 (20:53 +0100)
commit2162381113d24b0e154017fc07396de8b6e07ea6
tree26a2b53924c894e3e43d29eab524982427dc85f9
parentda00894bab3f02790d9d623b72f1d481402023e1
drm/i915/selftests: Fixup a missing legacy_idx

Grr, missed one*. For using the legacy engine map, we should use
engine->legacy_idx. Ideally, we should know the intel_context in the
selftest and avoid all the fiddling around with unwanted GEM contexts.

* In my defence, the conflict was added in another patch after it was
tested by CI.

v2: mock engines needs legacy love as well

Fixes: 0e0d1531939e ("drm/i915: Fix up the inverse mapping for default ctx->engines[]")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190808194525.9410-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/mock_engine.c
drivers/gpu/drm/i915/selftests/i915_request.c
drivers/gpu/drm/i915/selftests/mock_gem_device.c