None of the fields we use on render_copy and gpgpu_fill has changed
when compared to gen9. So let's reuse them.

Signed-off-by: Rodrigo Vivi <[email protected]>
---
 lib/intel_batchbuffer.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/intel_batchbuffer.c b/lib/intel_batchbuffer.c
index f135390..5344989 100644
--- a/lib/intel_batchbuffer.c
+++ b/lib/intel_batchbuffer.c
@@ -741,7 +741,7 @@ igt_render_copyfunc_t igt_get_render_copyfunc(int devid)
                copy = gen7_render_copyfunc;
        else if (IS_GEN8(devid))
                copy = gen8_render_copyfunc;
-       else if (IS_GEN9(devid))
+       else if (IS_GEN9(devid) || IS_GEN10(devid))
                copy = gen9_render_copyfunc;
 
        return copy;
@@ -789,7 +789,7 @@ igt_fillfunc_t igt_get_gpgpu_fillfunc(int devid)
                fill = gen7_gpgpu_fillfunc;
        else if (IS_BROADWELL(devid))
                fill = gen8_gpgpu_fillfunc;
-       else if (IS_GEN9(devid))
+       else if (IS_GEN9(devid) || IS_GEN10(devid))
                fill = gen9_gpgpu_fillfunc;
 
        return fill;
-- 
1.9.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to