glsl: Make sure gl_ClipDistance and gl_ClipVertex are not both written.
authorPaul Berry <stereotype441@gmail.com>
Fri, 12 Aug 2011 01:10:22 +0000 (18:10 -0700)
committerPaul Berry <stereotype441@gmail.com>
Thu, 8 Sep 2011 16:38:03 +0000 (09:38 -0700)
commitb453ba2c9f8ccb1d61a0ef50f0a40592df3366c3
tree3fd90166ffe0b75a8344c2491f6d6580cd73bed9
parent37bb1c4de2eb2fa80d09b6e8dc8f39814d790e09
glsl: Make sure gl_ClipDistance and gl_ClipVertex are not both written.

From section 7.1 (Vertex Shader Special Variables) of the GLSL 1.30
spec:

  "It is an error for a shader to statically write both
  gl_ClipVertex and gl_ClipDistance."

Fixes piglit test mixing-clip-distance-and-clip-vertex-disallowed.c.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/linker.cpp