From 8727807f7e218bd161d92e34f6896f4451d14de0 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 8 Nov 2011 19:17:47 -0800 Subject: [PATCH] i965: Expose GLSL 1.30 on gen6+. With the gl_VertexID support, everything required should now be supported. Reviewed-by: Ian Romanick --- src/mesa/drivers/dri/intel/intel_extensions.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/intel/intel_extensions.c b/src/mesa/drivers/dri/intel/intel_extensions.c index 89f09207323..681f5f25496 100644 --- a/src/mesa/drivers/dri/intel/intel_extensions.c +++ b/src/mesa/drivers/dri/intel/intel_extensions.c @@ -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) -- 2.30.2