i965: Exit with error if gen12+ is detected
authorJordan Justen <jordan.l.justen@intel.com>
Tue, 20 Aug 2019 01:55:40 +0000 (18:55 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Wed, 28 Aug 2019 20:38:34 +0000 (13:38 -0700)
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>
src/mesa/drivers/dri/i965/intel_screen.c

index 4dac9f7860cb18babd4c49cd6be6689d2927d763..42601132b6dbe7de236883b6c4f918500219f2de 100644 (file)
@@ -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;