compiler: Merge shader_info's tcs and tes structs.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 9 Jan 2017 19:37:21 +0000 (11:37 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 10 Jan 2017 21:21:21 +0000 (13:21 -0800)
commit5edc3381628d1db4468f31b1c66bb518146e35b5
tree66ca51fd2787a6547ea403cf8591cf1204529a54
parent195bf8f027f08657112f2f49faf4b749e9189a34
compiler: Merge shader_info's tcs and tes structs.

Annoyingly, SPIR-V lets you specify all of these fields in either the
TCS or TES, which means that we need to be able to store all of them
for either shader stage.  Putting them in a union won't work.

Combining both is an easy solution, and given that the TCS struct only
had a single field, it's pretty inexpensive.

This patch renames the combined struct to "tess" to indicate that it's
for tessellation in general, not one of the two stages.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/shader_info.h
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_nir.c
src/mesa/drivers/dri/i965/brw_shader.cpp
src/mesa/drivers/dri/i965/brw_tcs.c
src/mesa/drivers/dri/i965/brw_vec4_tcs.cpp
src/mesa/main/shaderapi.c
src/mesa/program/prog_statevars.c
src/mesa/state_tracker/st_program.c