i965: Turn on GLSL 1.50 and GL 3.2 support for i965 gen7.
authorPaul Berry <stereotype441@gmail.com>
Fri, 22 Mar 2013 21:41:17 +0000 (14:41 -0700)
committerPaul Berry <stereotype441@gmail.com>
Sat, 12 Oct 2013 15:57:45 +0000 (08:57 -0700)
Geometry shaders were the last thing we needed to finish before
turning on GLSL 1.50 and GL 3.2 support.  They are now working well,
with just a few piglit failures left to fix.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
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 6f024b414aa2fe2b9232c477d5db85360043b1f4..334be058f65edc7075b5e8f565759e6dcdd0b121 100644 (file)
@@ -125,7 +125,9 @@ intelInitExtensions(struct gl_context *ctx)
    ctx->Extensions.OES_standard_derivatives = true;
    ctx->Extensions.OES_EGL_image_external = true;
 
-   if (brw->gen >= 6)
+   if (brw->gen >= 7)
+      ctx->Const.GLSLVersion = 150;
+   else if (brw->gen >= 6)
       ctx->Const.GLSLVersion = 140;
    else
       ctx->Const.GLSLVersion = 120;
index b6b4275cc00146be6c27a704ecd27c02a377b562..0d2c2edaa1d2ac5445815c5eddd10304679a3c89 100644 (file)
@@ -1198,7 +1198,7 @@ set_max_gl_versions(struct intel_screen *screen)
 
    switch (screen->gen) {
    case 7:
-      psp->max_gl_core_version = 31;
+      psp->max_gl_core_version = 32;
       psp->max_gl_compat_version = 30;
       psp->max_gl_es1_version = 11;
       psp->max_gl_es2_version = 30;