[Mesa-dev] [PATCH 0/5] glsl: Add front-end support for gl_ClipDistance.

Paul Berry stereotype441 at gmail.com
Tue Sep 6 13:51:12 PDT 2011

This patch series modifies the GLSL front-end to implement all the
proper behaviors for gl_ClipDistance, namely:

- gl_ClipDistance is predeclared as unsized in both the vertex and
  fragment shader.
- It is an error to size gl_ClipDistance (either explicitly or
  implicitly) larger than gl_MaxClipDistances.
- It is an error to write to both gl_ClipDistance and gl_ClipVertex.

There is no back-end support for gl_ClipDistance yet.

[PATCH 1/5] glsl: Make gl_ClipDistance[] implicitly sized.
[PATCH 2/5] glsl: Add constant gl_MaxClipDistances.
[PATCH 3/5] glsl: Rework oversize array check for gl_TexCoord.
[PATCH 4/5] glsl: Check that gl_ClipDistance[] is not sized too large.
[PATCH 5/5] glsl: Make sure gl_ClipDistance and gl_ClipVertex are not both written.

More information about the mesa-dev mailing list