tgsi: store the sampler view type directly in the instruction
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 17 May 2017 08:51:59 +0000 (10:51 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 18 May 2017 19:48:16 +0000 (21:48 +0200)
commit5cb2eee5573b69311da95454be1431e536212fbb
treede5809f80ab973e510c624679b45d9c4a06e6c7b
parentac3f6bf608a10f661ac177d63d5fbdcd11b6c1c2
tgsi: store the sampler view type directly in the instruction

RadeonSI needs to do a special lowering for Gather4 with integer
formats, but with bindless samplers we just can't access the index.

Instead, store the return type in the instruction like the target.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/auxiliary/tgsi/tgsi_build.c
src/gallium/auxiliary/tgsi/tgsi_ureg.c
src/gallium/auxiliary/tgsi/tgsi_ureg.h
src/gallium/include/pipe/p_shader_tokens.h
src/mesa/state_tracker/st_atifs_to_tgsi.c
src/mesa/state_tracker/st_glsl_to_tgsi.cpp
src/mesa/state_tracker/st_mesa_to_tgsi.c
src/mesa/state_tracker/st_mesa_to_tgsi.h