i965/gen6: Enable GL 3.3 and GLSL 3.30
authorChris Forbes <chrisf@ijw.co.nz>
Fri, 19 Sep 2014 22:39:37 +0000 (10:39 +1200)
committerChris Forbes <chrisf@ijw.co.nz>
Sat, 20 Sep 2014 01:59:36 +0000 (13:59 +1200)
Tested on my snb-gt2:

4 tests skip->pass in spec/EXT_texture_array
51 tests skip->pass in spec.glsl-3.30
4 tests skip->pass in spec/!OpenGL 3.3
No regressions; no skip->fail changes.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/intel_extensions.c
src/mesa/drivers/dri/i965/intel_screen.c

index b7c64c6ae2c298045666a4bcdfae186dfcff4ee5..4e6627e8f612d51c79a10edc4c9cf1f54ad7006d 100644 (file)
@@ -243,10 +243,8 @@ intelInitExtensions(struct gl_context *ctx)
    ctx->Extensions.OES_standard_derivatives = true;
    ctx->Extensions.OES_EGL_image_external = true;
 
-   if (brw->gen >= 7)
+   if (brw->gen >= 6)
       ctx->Const.GLSLVersion = 330;
-   else if (brw->gen >= 6)
-      ctx->Const.GLSLVersion = 150;
    else
       ctx->Const.GLSLVersion = 120;
    _mesa_override_glsl_version(&ctx->Const);
index 8070e9708c5d9253d7c46f1f779d2748becb16d8..41964eca961d381026c4ddfb1ce599b94e21d428 100644 (file)
@@ -1269,13 +1269,8 @@ set_max_gl_versions(struct intel_screen *screen)
    switch (screen->devinfo->gen) {
    case 8:
    case 7:
-      psp->max_gl_core_version = 33;
-      psp->max_gl_compat_version = 30;
-      psp->max_gl_es1_version = 11;
-      psp->max_gl_es2_version = 30;
-      break;
    case 6:
-      psp->max_gl_core_version = 32;
+      psp->max_gl_core_version = 33;
       psp->max_gl_compat_version = 30;
       psp->max_gl_es1_version = 11;
       psp->max_gl_es2_version = 30;