i965: Expose GLSL 1.30 on gen6+.
authorEric Anholt <eric@anholt.net>
Wed, 9 Nov 2011 03:17:47 +0000 (19:17 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 11 Nov 2011 16:28:12 +0000 (08:28 -0800)
With the gl_VertexID support, everything required should now be
supported.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/intel/intel_extensions.c

index 89f092073238431492ad24a5c2396347d8fdf84c..681f5f254962e319109a266360617b8072dbe228 100644 (file)
@@ -98,7 +98,10 @@ intelInitExtensions(struct gl_context *ctx)
    ctx->Extensions.OES_EGL_image = true;
 #endif
 
-   ctx->Const.GLSLVersion = 120;
+   if (intel->gen >= 6)
+      ctx->Const.GLSLVersion = 130;
+   else
+      ctx->Const.GLSLVersion = 120;
    _mesa_override_glsl_version(ctx);
 
    if (intel->gen >= 5)