[PATCH i-g-t 2/2] lib/intel_batchbuffer: Be ready to use xe2 render-copy on newer hardware
Zbigniew Kempczyński
zbigniew.kempczynski at intel.com
Tue Apr 23 07:04:49 UTC 2024
Newer hardware seems to have same 3D functionality so lets prepare
batchbuffer to reuse Xe2 pipeline and shader for render-copy.
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
Cc: Dominik Grzegorzek <dominik.grzegorzek at intel.com>
---
lib/intel_batchbuffer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/intel_batchbuffer.c b/lib/intel_batchbuffer.c
index c8c6e9a193..824e928319 100644
--- a/lib/intel_batchbuffer.c
+++ b/lib/intel_batchbuffer.c
@@ -660,7 +660,7 @@ igt_render_copyfunc_t igt_get_render_copyfunc(int devid)
copy = mtl_render_copyfunc;
else if (IS_DG2(devid))
copy = gen12p71_render_copyfunc;
- else if (IS_GEN(devid, 20))
+ else if (AT_LEAST_GEN(devid, 20))
copy = xe2_render_copyfunc;
else if (IS_GEN12(devid))
copy = gen12_render_copyfunc;
--
2.34.1
More information about the igt-dev
mailing list