diff options
author | Kenneth Graunke <[email protected]> | 2019-01-14 00:25:23 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:11 -0800 |
commit | e17333ea1e57cbf40ad3dd5c75e5caef24d0feb4 (patch) | |
tree | 9eff7960f64315c4c7a19732e9bfa1004be8384f /src/gallium | |
parent | 1f91f688e8c05f1d026e92234d768a5d361e0805 (diff) |
iris: fail to create screen for older unsupported HW
loader shouldn't try, but let's be paranoid
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/iris/iris_screen.c | 3 |
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); |