summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorJordan Justen <[email protected]>2019-08-19 18:55:40 -0700
committerJordan Justen <[email protected]>2019-08-28 13:38:34 -0700
commit107c22945fdc1d21c3aaf48f0841cb1289f1669e (patch)
tree911c62649884f9db631e1c050637282ddb68cb6c /src/mesa/drivers/dri
parentd8dd9a245eb73e70a6fa6273d3994020548b3178 (diff)
i965: Exit with error if gen12+ is detected
For OpenGL support on gen12, the iris driver should be used. Signed-off-by: Jordan Justen <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/i965/intel_screen.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c
index 4dac9f7860c..42601132b6d 100644
--- a/src/mesa/drivers/dri/i965/intel_screen.c
+++ b/src/mesa/drivers/dri/i965/intel_screen.c
@@ -2527,6 +2527,11 @@ __DRIconfig **intelInitScreen2(__DRIscreen *dri_screen)
screen->deviceID = devinfo->chipset_id;
screen->no_hw = devinfo->no_hw;
+ if (devinfo->gen >= 12) {
+ fprintf(stderr, "gen12 and newer are not supported on i965\n");
+ return NULL;
+ }
+
if (!intel_init_bufmgr(screen))
return NULL;