glsl/tests: Verify geometry shader built-ins generated by _mesa_glsl_initialize_variables
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 3 Oct 2013 22:21:53 +0000 (15:21 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 22 Oct 2013 22:23:30 +0000 (15:23 -0700)
commitaf229c94e357fb4747f108603382168e49b6fd02
tree7eaae3bfb494a717abc49dfcc7d43437b3d1d119
parentf094a0f825abd261109ee566a760089dd4da64e6
glsl/tests: Verify geometry shader built-ins generated by _mesa_glsl_initialize_variables

Checks that the variables generated meet certain criteria.

 - Geometry shader inputs have an explicit location.

 - Geometry shader outputs have an explicit location.

 - Fragment shader-only varying locations are not used.

 - Geometry shader uniforms and system values don't have an explicit
   location.

 - Geometry shader constants don't have an explicit location and are
   read-only.

 - No other kinds of geometry variables exist.

It does not verify that an specific variables exist.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/glsl/tests/builtin_variable_test.cpp