summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2019-01-14 00:25:23 -0800
committerKenneth Graunke <[email protected]>2019-02-21 10:26:11 -0800
commite17333ea1e57cbf40ad3dd5c75e5caef24d0feb4 (patch)
tree9eff7960f64315c4c7a19732e9bfa1004be8384f
parent1f91f688e8c05f1d026e92234d768a5d361e0805 (diff)
iris: fail to create screen for older unsupported HW
loader shouldn't try, but let's be paranoid
-rw-r--r--src/gallium/drivers/iris/iris_screen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_screen.c b/src/gallium/drivers/iris/iris_screen.c
index 64514cddbc4..9da3369d7c2 100644
--- a/src/gallium/drivers/iris/iris_screen.c
+++ b/src/gallium/drivers/iris/iris_screen.c
@@ -555,6 +555,9 @@ iris_screen_create(int fd)
if (!gen_get_device_info(screen->pci_id, &screen->devinfo))
return NULL;
+ if (screen->devinfo.gen < 8 || screen->devinfo.is_cherryview)
+ return NULL;
+
screen->devinfo.timestamp_frequency =
iris_getparam_integer(screen, I915_PARAM_CS_TIMESTAMP_FREQUENCY);