Commit 928da10c authored by Chris Wilson's avatar Chris Wilson

drm/i915/selftests: Use all physical engines for i915_active

i915_active must track over any engine, so expand the selftest to
iterate over all uabi engines.
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191021162146.1686-1-chris@chris-wilson.co.uk
parent 8f4b1068
...@@ -79,7 +79,6 @@ __live_active_setup(struct drm_i915_private *i915) ...@@ -79,7 +79,6 @@ __live_active_setup(struct drm_i915_private *i915)
struct intel_engine_cs *engine; struct intel_engine_cs *engine;
struct i915_sw_fence *submit; struct i915_sw_fence *submit;
struct live_active *active; struct live_active *active;
enum intel_engine_id id;
unsigned int count = 0; unsigned int count = 0;
int err = 0; int err = 0;
...@@ -97,7 +96,7 @@ __live_active_setup(struct drm_i915_private *i915) ...@@ -97,7 +96,7 @@ __live_active_setup(struct drm_i915_private *i915)
if (err) if (err)
goto out; goto out;
for_each_engine(engine, i915, id) { for_each_uabi_engine(engine, i915) {
struct i915_request *rq; struct i915_request *rq;
rq = i915_request_create(engine->kernel_context); rq = i915_request_create(engine->kernel_context);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment