glsl: Override the # of varying slots for ClipDistance and TessLevel*.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 15 Nov 2015 12:37:50 +0000 (04:37 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 6 Jan 2017 23:55:37 +0000 (15:55 -0800)
commit8b5749f65ac434961308ccb579fb8a816e4f29d5
tree0142e966f4bef51c9e5fdf065fcbdc7a0fc09a1e
parent6aa5cb34d03765b7be8611aa516bc201bd337f73
glsl: Override the # of varying slots for ClipDistance and TessLevel*.

Right now, this shouldn't have any effect, as all drivers use
LowerClipDist and LowerTessFactors to turn the float[] arrays into
vectors.

However, it should help make it possible for drivers to avoid that
lowering.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
src/compiler/glsl/ir.cpp