[igt-dev] [PATCH i-g-t] lib/intel_batchbuffer: Reuse gen9_media_fill on Gen 10

Katarzyna Dec katarzyna.dec at intel.com
Mon Apr 16 07:39:54 UTC 2018


Media fill function can be reused on Gen10. Code has not
changed. Let's reuse gen9.

Cc: Lucas De Marchi <lucas.demarchi at intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi at intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio at intel.com>
Signed-off-by: Katarzyna Dec <katarzyna.dec 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 10d4dce8..53ddae24 100644
--- a/lib/intel_batchbuffer.c
+++ b/lib/intel_batchbuffer.c
@@ -794,7 +794,7 @@ igt_fillfunc_t igt_get_media_fillfunc(int devid)
 {
 	igt_fillfunc_t fill = NULL;
 
-	if (IS_GEN9(devid))
+	if (IS_GEN9(devid) || IS_GEN10(devid))
 		fill = gen9_media_fillfunc;
 	else if (IS_GEN8(devid))
 		fill = gen8_media_fillfunc;
-- 
2.14.3



More information about the igt-dev mailing list