i965/screen: Allow OpenGLES 3.1 for gen8+
authorJordan Justen <jordan.l.justen@intel.com>
Tue, 15 Dec 2015 23:53:20 +0000 (15:53 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Thu, 17 Dec 2015 04:37:40 +0000 (20:37 -0800)
OpenGLES 3.1 cannot be enabled for gen 7 (Ivy Bridge, Haswell) since
they are still missing ARB_stencil_texturing.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Marta Lofstedt <marta.lofstedt@intel.com>
src/mesa/drivers/dri/i965/intel_screen.c

index cc90efe488607844e1314ada8bd0f82d2f936da9..2836ecf665c161bddc3673c8ab46aac14b9762f6 100644 (file)
@@ -1339,6 +1339,11 @@ set_max_gl_versions(struct intel_screen *screen)
    switch (screen->devinfo->gen) {
    case 9:
    case 8:
+      psp->max_gl_core_version = 33;
+      psp->max_gl_compat_version = 30;
+      psp->max_gl_es1_version = 11;
+      psp->max_gl_es2_version = 31;
+      break;
    case 7:
    case 6:
       psp->max_gl_core_version = 33;