On 9 November 2011 11:33, Eric Anholt <span dir="ltr"><<a href="mailto:eric@anholt.net">eric@anholt.net</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
With the gl_VertexID support, everything required should now be<br>
supported.<br>
---<br>
src/mesa/drivers/dri/intel/intel_extensions.c | 5 ++++-<br>
1 files changed, 4 insertions(+), 1 deletions(-)<br>
<br>
diff --git a/src/mesa/drivers/dri/intel/intel_extensions.c b/src/mesa/drivers/dri/intel/intel_extensions.c<br>
index 7a5ef3e..11a8135 100644<br>
--- a/src/mesa/drivers/dri/intel/intel_extensions.c<br>
+++ b/src/mesa/drivers/dri/intel/intel_extensions.c<br>
@@ -90,7 +90,10 @@ intelInitExtensions(struct gl_context *ctx)<br>
ctx->Extensions.OES_EGL_image = true;<br>
#endif<br>
<br>
- ctx->Const.GLSLVersion = 120;<br>
+ if (intel->gen >= 4)<br>
+ ctx->Const.GLSLVersion = 130;<br>
+ else<br>
+ ctx->Const.GLSLVersion = 120;<br>
_mesa_override_glsl_version(ctx);<br>
<br>
if (intel->gen >= 5)<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.7.7<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br>I only think we can justify claiming GLSL 1.30 support for Gen6 and above right now. There are at least two significant GLSL 1.30 features that we haven't backported to Gen4 and Gen5: gl_ClipDistance and interpolation qualifiers.<br>
<br>I'm not opposed to backporting those features in the long run, but there will be substantial work involved (especially for gl_ClipDistance, because Gen4 and Gen5 do clipping differently). So for now let's make it if (intel->gen >= 6).<br>