Commit 3b6975c0 authored by Chris Wilson's avatar Chris Wilson 🤔

i915/gem_exec_schedule: Check for store-dword support before use

Check that the target engine does indeed support store-dword before
attempting to use it.
Signed-off-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
Acked-by: default avatarMika Kuoppala <mika.kuoppala@linux.intel.com>
parent 1f96796c
Pipeline #165193 passed with stages
in 11 minutes and 29 seconds
......@@ -264,6 +264,9 @@ static void implicit_rw(int i915, unsigned ring, enum implicit_dir dir)
if (e->flags == ring)
continue;
if (!gem_class_can_store_dword(i915, e->class))
continue;
count++;
}
igt_require(count);
......@@ -280,6 +283,9 @@ static void implicit_rw(int i915, unsigned ring, enum implicit_dir dir)
if (e->flags == ring)
continue;
if (!gem_class_can_store_dword(i915, e->class))
continue;
store_dword_fenced(i915, 0,
e->flags, scratch, 0, e->flags,
fence, 0);
......
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