mesa/src/glsl/tests
Ian Romanick f7bf37cb13 linker: Fix consumer_inputs_with_locations indexing
In an earlier incarnation of populate_consumer_input_sets and
get_matching_input, the consumer_inputs_with_locations array was indexed
using the user-specified location.  In that version, only user-defined
varyings were included in the array.

In the current incarnation, the Mesa location is used to index the
array, and built-in varyings are included.

This change fixes the unit test to exepect gl_ClipDistance in the array,
and it resizes the arrays to actually be big enough.  It's just dumb
luck that the existing piglit tests use small enough locations to not
stomp the stack. :(

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78258
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: "10.2" <mesa-stable@lists.freedesktop.org>
Cc: Vinson Lee <vlee@freedesktop.org>
2014-05-07 09:50:14 -07:00
..
lower_jumps glsl/loops: Get rid of lower_bounded_loops and ir_loop::normative_bound. 2013-12-09 10:55:09 -08:00
.gitignore glsl: When constructing a variable with an interface type, set interface_type 2013-10-22 15:23:30 -07:00
builtin_variable_test.cpp glsl: Change _mesa_glsl_parse_state ctor to use gl_shader_stage enum. 2014-01-08 07:31:49 -08: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/tests: Add test for uniform initialization by the linker 2012-05-23 11:42:08 -07:00
general_ir_test.cpp glsl: When constructing a variable with an interface type, set interface_type 2013-10-22 15:23:30 -07:00
invalidate_locations_test.cpp glsl: move variables in to ir_variable::data, part II 2013-12-12 17:28:11 +02:00
optimization-test glsl: Use more portable bash invocation construct. 2013-11-20 22:39:59 -08:00
ralloc_test.cpp ralloc: Add some basic unit tests. 2012-05-30 21:49:41 -07:00
sampler_types_test.cpp glsl: Add helper methods to glsl_type for dealing with images. 2014-02-12 18:43:37 +01:00
set_uniform_initializer_tests.cpp mesa: Clean up nomenclature for pipeline stages. 2014-01-08 07:30:30 -08:00
sexps.py glsl: Add unit tests for lower_jumps.cpp 2011-07-22 09:45:11 -07:00
uniform_initializer_utils.cpp glsl: Add new atomic_uint built-in GLSL type. 2013-10-29 12:40:55 -07:00
uniform_initializer_utils.h glsl/tests: Add test for uniform initialization by the linker 2012-05-23 11:42:08 -07:00
varyings_test.cpp linker: Fix consumer_inputs_with_locations indexing 2014-05-07 09:50:14 -07:00