[igt-dev] [PATCH i-g-t 1/3] lib: Reuse Gen9 mediafill on Gen11

José Roberto de Souza jose.souza at intel.com
Wed Jun 27 21:53:52 UTC 2018


From: Daniele Ceraolo Spurio <daniele.ceraolospurio at intel.com>

We can reuse gen9 mediafill function, because no changes
are required to support Gen11.

Cc: Lucas De Marchi <lucas.demarchi at intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio at intel.com>
Cc: Katarzyna Dec <katarzyna.dec at intel.com>
Signed-off-by: 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 a85c760c..539f1e51 100644
--- a/lib/intel_batchbuffer.c
+++ b/lib/intel_batchbuffer.c
@@ -858,7 +858,7 @@ igt_fillfunc_t igt_get_media_fillfunc(int devid)
 {
 	igt_fillfunc_t fill = NULL;
 
-	if (IS_GEN9(devid) || IS_GEN10(devid))
+	if (IS_GEN9(devid) || IS_GEN10(devid) || IS_GEN11(devid))
 		fill = gen9_media_fillfunc;
 	else if (IS_GEN8(devid))
 		fill = gen8_media_fillfunc;
-- 
2.18.0



More information about the igt-dev mailing list