[Intel-gfx] [PATCH i-g-t 03/26] skl: initialize instdone bits for gen9

Damien Lespiau damien.lespiau at intel.com
Fri Sep 26 16:03:01 CEST 2014


gen9 uses the same bits as gen8.

Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
Reviewed-by: Jesse Barnes <jbarnes at virtuousgeek.org>
Signed-off-by: Ben Widawsky <ben at bwidawsk.net>
---
 lib/instdone.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/lib/instdone.c b/lib/instdone.c
index 51cdff9..fffb949 100644
--- a/lib/instdone.c
+++ b/lib/instdone.c
@@ -417,10 +417,18 @@ init_gen8_instdone(void)
 	init_gen75_instdone();
 }
 
+static void
+init_gen9_instdone(void)
+{
+	init_gen8_instdone();
+}
+
 void
 init_instdone_definitions(uint32_t devid)
 {
-	if (IS_GEN8(devid)) {
+	if (IS_GEN9(devid)) {
+		init_gen9_instdone();
+	} else if (IS_GEN8(devid)) {
 		init_gen8_instdone();
 	} else if (IS_GEN7(devid)) {
 		init_gen7_instdone();
-- 
1.8.3.1




More information about the Intel-gfx mailing list