glsl: add builtins for geometry shaders.
authorBryan Cain <bryancain3@gmail.com>
Fri, 15 Feb 2013 14:53:20 +0000 (08:53 -0600)
committerPaul Berry <stereotype441@gmail.com>
Fri, 2 Aug 2013 03:20:36 +0000 (20:20 -0700)
commitff523771833cf2cfb6d69d61e86a28c26b8400be
tree8c5bbbcfa2552eed7a4d74ff34f174c623453d0d
parentae6eba3e32a142665d2ae6e15c9122d3201c0b5d
glsl: add builtins for geometry shaders.

v2 (Paul Berry <stereotype441@gmail.com>): Account for rework of
builtin_variables.cpp.  Use INTERP_QUALIFIER_FLAT for gl_PrimitiveID
so that it will obey provoking vertex conventions.  Convert to GLSL
1.50 style geometry shaders.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
v3 (Paul Berry <stereotype441@gmail.com>): Be less obscure about
setting interpolation field of gl_Primitive variables.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/builtin_variables.cpp
src/glsl/builtins/ir/EmitVertex.ir [new file with mode: 0644]
src/glsl/builtins/ir/EndPrimitive.ir [new file with mode: 0644]
src/glsl/builtins/profiles/150.geom [new file with mode: 0644]
src/glsl/builtins/tools/generate_builtins.py