summaryrefslogtreecommitdiff
path: root/lib/intel_batchbuffer.c
diff options
context:
space:
mode:
authorRodrigo Vivi <rodrigo.vivi@intel.com>2017-06-29 14:16:57 -0700
committerRodrigo Vivi <rodrigo.vivi@intel.com>2017-06-30 08:35:30 -0700
commitbe2e7badd750858a499c862620768cffcac20295 (patch)
tree1f8f6b466cb0478e986392d6740dfd9f8cbb5e37 /lib/intel_batchbuffer.c
parentf03ce8855e008adbc1822975977a1cf1d826fd35 (diff)
lib/intel_batchbuffer: Add Gen10 support for render_copy and gpgpu_fillfunc.
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 <rodrigo.vivi@intel.com>
Diffstat (limited to 'lib/intel_batchbuffer.c')
-rw-r--r--lib/intel_batchbuffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/intel_batchbuffer.c b/lib/intel_batchbuffer.c
index f1353901..53449894 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;