glsl: Add new GLSL 1.50 constants.
authorPaul Berry <stereotype441@gmail.com>
Fri, 26 Jul 2013 18:55:52 +0000 (11:55 -0700)
committerPaul Berry <stereotype441@gmail.com>
Tue, 15 Oct 2013 18:34:30 +0000 (11:34 -0700)
commit2910a82eb43bafc73d542336c21f415f5f4a3bed
treeceea5f66f6fd2f0506edff19ca75b3df67e1529d
parent705a90e30435490c2de84f4f6741cab335fa7608
glsl: Add new GLSL 1.50 constants.

This patch populates the following built-in GLSL 1.50 variables based
on constants stored in ctx->Const:

- gl_MaxVertexOutputComponents
- gl_MaxGeometryInputComponents
- gl_MaxGeometryOutputComponents
- gl_MaxFragmentInputComponents
- gl_MaxGeometryTextureImageUnits
- gl_MaxGeometryOutputVertices
- gl_MaxGeometryTotalOutputComponents
- gl_MaxGeometryUniformComponents
- gl_MaxGeometryVaryingComponents

On i965/gen7, fixes all Piglit tests in "spec/glsl-1.50/built-in
constants/*" except for gl_MaxCombinedTextureImageUnits and
gl_MaxGeometryUniformComponents.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/glsl/builtin_variables.cpp
src/glsl/glsl_parser_extras.cpp
src/glsl/glsl_parser_extras.h