glsl: Consolidate gl_VertexIDMESA -> gl_VertexID query hacks.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 29 Mar 2016 20:32:32 +0000 (13:32 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 2 Apr 2016 05:05:20 +0000 (22:05 -0700)
commit9fe211bec4533bd5cebeb61b38343ae9c174abb7
tree137e2789ea22ec11ec223f4026d695db7a834618
parent013f25c3b3aa676cbd580fc070454d74db27a400
glsl: Consolidate gl_VertexIDMESA -> gl_VertexID query hacks.

A program will either have gl_VertexID or gl_VertexIDMESA (the lowered
zero-based version), not both.  Just spoof it in the resource list so
the hacks are done in a single place.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
src/compiler/glsl/linker.cpp
src/mesa/main/shader_query.cpp