[Intel-gfx] [PATCH i-g-t 4/5] lib/instdone: Add Gen10 support.

Rodrigo Vivi rodrigo.vivi at intel.com
Thu Jun 29 21:18:58 UTC 2017


Apparently nothing changed since BDW on these instdone bits.
So let's reuse instead of empty duplication.

Signed-off-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
---
 lib/instdone.c | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/lib/instdone.c b/lib/instdone.c
index 53d8215..510fce6 100644
--- a/lib/instdone.c
+++ b/lib/instdone.c
@@ -417,18 +417,10 @@ init_gen8_instdone(void)
 	init_gen75_instdone();
 }
 
-static void
-init_gen9_instdone(void)
-{
-	init_gen8_instdone();
-}
-
 bool
 init_instdone_definitions(uint32_t devid)
 {
-	if (IS_GEN9(devid)) {
-		init_gen9_instdone();
-	} else if (IS_GEN8(devid)) {
+	if (IS_GEN8(devid) || IS_GEN9(devid) || IS_GEN10(devid)) {
 		init_gen8_instdone();
 	} else if (IS_GEN7(devid)) {
 		init_gen7_instdone();
-- 
1.9.1



More information about the Intel-gfx mailing list