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

José Roberto de Souza jose.souza at intel.com
Tue Sep 18 19:30:43 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: Daniele Ceraolo Spurio <daniele.ceraolospurio at intel.com>
Cc: Katarzyna Dec <katarzyna.dec at intel.com>
Cc: Lucas De Marchi <lucas.demarchi at intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi at intel.com>
Tested-by: José Roberto de Souza <jose.souza 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 50ef53a3..abb07642 100644
--- a/lib/intel_batchbuffer.c
+++ b/lib/intel_batchbuffer.c
@@ -860,7 +860,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.19.0



More information about the igt-dev mailing list