mesa: fix program resource queries for builtin variables
authorTapani <tapani.palli@intel.com>
Fri, 5 Jun 2015 05:22:07 +0000 (08:22 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Fri, 5 Jun 2015 05:39:59 +0000 (08:39 +0300)
commit78395dbf9ff429d98523f8b4a340f7188d8b4db0
tree72a3fe340eedb1c48b298d2b310aa50c8ee45a91
parentcb277cde6f2a210b0515cd04269964fd409307e9
mesa: fix program resource queries for builtin variables

Patch fixes special cases with gl_VertexID and sets all builtin
variables locations as '-1' as specified by the extension spec.

Fixes ES 3.1 conformance test failure:
ES31-CTS.program_interface_query.input-built-in

v2: comments + use is_gl_identifier() (Martin)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Martin Peres <martin.peres@linux.intel.com>
src/mesa/main/shader_query.cpp