From e17333ea1e57cbf40ad3dd5c75e5caef24d0feb4 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 14 Jan 2019 00:25:23 -0800 Subject: [PATCH] iris: fail to create screen for older unsupported HW loader shouldn't try, but let's be paranoid --- src/gallium/drivers/iris/iris_screen.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.30.2