[igt-dev] [PATCH i-g-t v7 12/16] lib/gpgpu_fill: Use RENDER engine flag to work on Xe
Zbigniew Kempczyński
zbigniew.kempczynski at intel.com
Thu Apr 27 20:03:03 UTC 2023
Using I915_EXEC_DEFAULT works fine for i915 selecting appropriate
command streamer. Unfortunately this cannot be used on Xe as it
requires explicit engine selection. Submitting gpgpu work on
render is fine so change to I915_EXEC_RENDER doesn't break i915
and allows run on valid engine on Xe.
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
Reviewed-by: Christoph Manszewski <christoph.manszewski at intel.com>
---
lib/gpgpu_fill.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/gpgpu_fill.c b/lib/gpgpu_fill.c
index 4f7bab68f2..4db8775145 100644
--- a/lib/gpgpu_fill.c
+++ b/lib/gpgpu_fill.c
@@ -288,7 +288,7 @@ __gen9_gpgpu_fillfunc(int i915,
intel_bb_ptr_align(ibb, 32);
intel_bb_exec(ibb, intel_bb_offset(ibb),
- I915_EXEC_DEFAULT | I915_EXEC_NO_RELOC, true);
+ I915_EXEC_RENDER | I915_EXEC_NO_RELOC, true);
intel_bb_destroy(ibb);
}
@@ -329,7 +329,7 @@ __xehp_gpgpu_fillfunc(int i915,
intel_bb_ptr_align(ibb, 32);
intel_bb_exec(ibb, intel_bb_offset(ibb),
- I915_EXEC_DEFAULT | I915_EXEC_NO_RELOC, true);
+ I915_EXEC_RENDER | I915_EXEC_NO_RELOC, true);
intel_bb_destroy(ibb);
}
--
2.34.1
More information about the igt-dev
mailing list