iris: fail to create screen for older unsupported HW
loader shouldn't try, but let's be paranoid
This commit is contained in:
parent
1f91f688e8
commit
e17333ea1e
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue