[Mesa-dev] [PATCH 6/6] i965: Expose GLSL 1.30 on gen4+.

Eric Anholt eric at anholt.net
Wed Nov 9 11:33:29 PST 2011


With the gl_VertexID support, everything required should now be
supported.
---
 src/mesa/drivers/dri/intel/intel_extensions.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_extensions.c b/src/mesa/drivers/dri/intel/intel_extensions.c
index 7a5ef3e..11a8135 100644
--- a/src/mesa/drivers/dri/intel/intel_extensions.c
+++ b/src/mesa/drivers/dri/intel/intel_extensions.c
@@ -90,7 +90,10 @@ intelInitExtensions(struct gl_context *ctx)
    ctx->Extensions.OES_EGL_image = true;
 #endif
 
-   ctx->Const.GLSLVersion = 120;
+   if (intel->gen >= 4)
+      ctx->Const.GLSLVersion = 130;
+   else
+      ctx->Const.GLSLVersion = 120;
    _mesa_override_glsl_version(ctx);
 
    if (intel->gen >= 5)
-- 
1.7.7



More information about the mesa-dev mailing list