From: Kenneth Graunke Date: Mon, 14 Jan 2019 08:25:23 +0000 (-0800) Subject: iris: fail to create screen for older unsupported HW X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e17333ea1e57cbf40ad3dd5c75e5caef24d0feb4;p=mesa.git iris: fail to create screen for older unsupported HW loader shouldn't try, but let's be paranoid --- 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);