mesa/src/glsl/tests
Paul Berry 665b8d7b6d mesa: Clean up nomenclature for pipeline stages.
Previously, we had an enum called gl_shader_type which represented
pipeline stages in the order they occur in the pipeline
(i.e. MESA_SHADER_VERTEX=0, MESA_SHADER_GEOMETRY=1, etc), and several
inconsistently named functions for converting between it and other
representations:

- _mesa_shader_type_to_string: gl_shader_type -> string
- _mesa_shader_type_to_index: GLenum (GL_*_SHADER) -> gl_shader_type
- _mesa_program_target_to_index: GLenum (GL_*_PROGRAM) -> gl_shader_type
- _mesa_shader_enum_to_string: GLenum (GL_*_{SHADER,PROGRAM}) -> string

This patch tries to clean things up so that we use more consistent
terminology: the enum is now called gl_shader_stage (to emphasize that
it is in the order of pipeline stages), and the conversion functions are:

- _mesa_shader_stage_to_string: gl_shader_stage -> string
- _mesa_shader_enum_to_shader_stage: GLenum (GL_*_SHADER) -> gl_shader_stage
- _mesa_program_enum_to_shader_stage: GLenum (GL_*_PROGRAM) -> gl_shader_stage
- _mesa_progshader_enum_to_string: GLenum (GL_*_{SHADER,PROGRAM}) -> string

In addition, MESA_SHADER_TYPES has been renamed to MESA_SHADER_STAGES,
for consistency with the new name for the enum.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>

v2: Also rename the "target" field of _mesa_glsl_parse_state and the
"target" parameter of _mesa_shader_stage_to_string to "stage".

Reviewed-by: Brian Paul <brianp@vmware.com>
2014-01-08 07:30:30 -08: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: move variables in to ir_variable::data, part II 2013-12-12 17:28:11 +02: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/tests: Add a test for properties of sampler types. 2013-09-15 21:48:20 -07: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