summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2019-08-19 18:55:40 -0700
committerJordan Justen <jordan.l.justen@intel.com>2019-08-28 13:38:34 -0700
commit107c22945fdc1d21c3aaf48f0841cb1289f1669e (patch)
tree911c62649884f9db631e1c050637282ddb68cb6c
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 <jordan.l.justen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
-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;