From: Rob Clark <robcl...@freedesktop.org> Some drivers (well, at least freedreno, maybe others?) need to know when compiling the shader whether the texture is float/int/unsigned. This information is in GLSL IR, and in NIR, but lacking in TGSI.
This was previously worked around in the driver by using a shader variant. But that is annoying and stupid. Rob Clark (2): tgsi: add texture-type info to texture instructions gallium/ttn: add texture-type support src/gallium/auxiliary/nir/tgsi_to_nir.c | 14 ++++++++++++++ src/gallium/auxiliary/tgsi/tgsi_ureg.c | 7 +++++-- src/gallium/auxiliary/tgsi/tgsi_ureg.h | 22 +++++++++++++++------- src/gallium/include/pipe/p_shader_tokens.h | 7 ++++++- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 19 +++++++++++++++++++ src/mesa/state_tracker/st_mesa_to_tgsi.c | 1 + 6 files changed, 60 insertions(+), 10 deletions(-) -- 2.4.2 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev