glsl: Move UsesClipDistance from gl_{vertex,geometry}_program into gl_program.
authorPaul Berry <stereotype441@gmail.com>
Wed, 23 Oct 2013 17:59:57 +0000 (10:59 -0700)
committerPaul Berry <stereotype441@gmail.com>
Fri, 25 Oct 2013 05:00:13 +0000 (22:00 -0700)
commit11634e491bf6d7d930f00c5b4f62fd4e8cb4314d
treecb142dcb12b6b31ab88e545f40686650e6374286
parent44b7ebe52d6f4b220a1c943bac2e571bb593f7e1
glsl: Move UsesClipDistance from gl_{vertex,geometry}_program into gl_program.

This will make it easier for back-ends to share code between geometry
shader and vertex shader compilation.  Also, it is renamed to
"UsesClipDistanceOut" to clarify that (a) in geometry shaders, it
refers to the gl_ClipDistance output rather than the gl_ClipDistance
input, and (b) it is irrelevant in fragment shaders.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_vec4_gs.c
src/mesa/drivers/dri/i965/brw_vs.c
src/mesa/main/mtypes.h
src/mesa/main/shaderapi.c