mesa/src/glsl/tests
Martin Peres 87a4bc5118 mesa: reference built-in uniforms into gl_uniform_storage
This change introduces a new field in gl_uniform_storage to
explicitely say that a uniform is built-in. In the case where it is,
no storage is defined to make it clear that it is read-only from the
mesa side. I fixed all the places in the code that made use of the
structure that I changed. Any place making a wrong assumption and using
the storage straight away will just crash.

This patch seems to implement the path of least resistance towards
listing built-in uniforms in GL_ACTIVE_UNIFORM (and other APIs).

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Signed-off-by: Martin Peres <martin.peres@linux.intel.com>
2015-06-04 09:25:00 +03:00
..
lower_jumps glsl/tests: remove generated tests from the repo 2014-05-28 15:07:07 -07:00
.gitignore glsl: Add unit tests for blob.c 2015-01-16 13:47:40 -08:00
blob_test.c glsl: Add unit tests for blob.c 2015-01-16 13:47:40 -08:00
builtin_variable_test.cpp util: Move ralloc to a new src/util directory. 2014-08-04 11:06:58 -07:00
common.c mesa: Add _mesa_error_no_memory for logging out-of-memory messages 2014-05-02 11:58:36 -07:00
compare_ir glsl: Add unit tests for lower_jumps.cpp 2011-07-22 09:45:11 -07:00
copy_constant_to_storage_tests.cpp glsl: replace Elements() with ARRAY_SIZE() 2015-03-02 08:55:30 -07:00
general_ir_test.cpp util: Move ralloc to a new src/util directory. 2014-08-04 11:06:58 -07:00
invalidate_locations_test.cpp util: Move ralloc to a new src/util directory. 2014-08-04 11:06:58 -07:00
optimization-test glsl/tests: call create_test_cases.py in optimization-test 2014-05-28 15:06:45 -07:00
sampler_types_test.cpp util: Move ralloc to a new src/util directory. 2014-08-04 11:06:58 -07:00
set_uniform_initializer_tests.cpp mesa: reference built-in uniforms into gl_uniform_storage 2015-06-04 09:25:00 +03:00
sexps.py glsl: Add unit tests for lower_jumps.cpp 2011-07-22 09:45:11 -07:00
uniform_initializer_utils.cpp glsl: replace Elements() with ARRAY_SIZE() 2015-03-02 08:55:30 -07:00
uniform_initializer_utils.h glsl: Use UniformBooleanTrue value for uniform initializers. 2014-08-18 18:35:48 -07:00
varyings_test.cpp util: Move ralloc to a new src/util directory. 2014-08-04 11:06:58 -07:00