mesa,glsl,nir: reduce gl_state_index size to 2 bytes
authorMarek Olšák <marek.olsak@amd.com>
Thu, 16 Nov 2017 03:29:35 +0000 (04:29 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 13 Feb 2018 00:00:45 +0000 (01:00 +0100)
commite149a0253c12d103805230bc7bc0a36887c3b8df
tree2eedb0e74a1d0f71c76634ac165f925feecfa1b3
parenta7882013d3e788a76cce638704c02b7bea0e67a1
mesa,glsl,nir: reduce gl_state_index size to 2 bytes

Let's use the new gl_state_index16 type everywhere and remove
the typecasts.

This helps reduce the size of gl_program_parameter.

Reviewed-by: Brian Paul <brianp@vmware.com>
27 files changed:
src/compiler/glsl/ir.h
src/compiler/glsl/serialize.cpp
src/compiler/glsl/standalone_scaffolding.cpp
src/compiler/glsl/standalone_scaffolding.h
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_drawpixels.c
src/compiler/shader_enums.h
src/mesa/drivers/dri/i965/brw_link.cpp
src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp
src/mesa/drivers/dri/i965/brw_program.c
src/mesa/drivers/dri/r200/r200_vertprog.c
src/mesa/main/ffvertex_prog.c
src/mesa/main/tests/program_state_string.cpp
src/mesa/main/uniforms.h
src/mesa/program/ir_to_mesa.cpp
src/mesa/program/prog_parameter.c
src/mesa/program/prog_parameter.h
src/mesa/program/prog_statevars.c
src/mesa/program/prog_statevars.h
src/mesa/program/program_parse.y
src/mesa/program/programopt.c
src/mesa/state_tracker/st_atifs_to_tgsi.c
src/mesa/state_tracker/st_glsl_to_nir.cpp
src/mesa/state_tracker/st_glsl_to_tgsi.cpp
src/mesa/state_tracker/st_mesa_to_tgsi.c
src/mesa/state_tracker/st_nir_lower_builtin.c
src/mesa/state_tracker/st_program.c