glsl: be more careful about counting varying vars in the linker
authorBrian Paul <brianp@vmware.com>
Tue, 26 Jun 2012 19:06:47 +0000 (13:06 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 27 Jun 2012 17:31:16 +0000 (11:31 -0600)
commit8fb1e4a4628caee9e80dcbc47f8f9c772db09419
tree8c2daa1019e10628fa90518d1da4f88cf0648305
parentd9d84068e76bf1f6dcf578e39636d3100e6348a0
glsl: be more careful about counting varying vars in the linker

Previously, we were counting gl_FrontFacing, gl_FragCoord and gl_PointCoord
against the limit of varying variables.  This prevented some valid shaders
from linking.

The other potential solution to this is to have the driver advertise
more varying vars or set the GLSLSkipStrictMaxVaryingLimitCheck flag.
But the above-mentioned variables aren't conventional varying attributes
so it doesn't seem right to count them.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/glsl/linker.cpp