main: Fix MaxUniformComponents for geometry shaders.
authorPaul Berry <stereotype441@gmail.com>
Wed, 13 Nov 2013 22:24:09 +0000 (14:24 -0800)
committerPaul Berry <stereotype441@gmail.com>
Fri, 15 Nov 2013 16:47:41 +0000 (08:47 -0800)
commit46e9f78efcb6ccc25ea59d83624aaa5077254a85
treed9147c7de8d12a4658732105341df29eddce0d83
parent420ccf7b8f33c92657479462478db787c431d750
main: Fix MaxUniformComponents for geometry shaders.

For both vertex and fragment shaders we default MaxUniformComponents
to 4 * MAX_UNIFORMS.  It makes sense to do this for geometry shaders
too; if back-ends have different limits they can override them as
necessary.

Fixes piglit test:
spec/glsl-1.50/built-in constants/gl_MaxGeometryUniformComponents

Cc: "10.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/main/context.c