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

Kenneth Graunke kenneth at whitecape.org
Tue Sep 6 21:14:16 PDT 2011

On 09/06/2011 01:51 PM, Paul Berry wrote:
> 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.

Nice work as always, Paul.

For the series:
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

More information about the mesa-dev mailing list