[Mesa-dev] [PATCH 0/2] tgsi: texture type support
maraeo at gmail.com
Thu Jun 4 09:18:20 PDT 2015
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
What does the type really do? Does it only disable filtering for
int/uint? Because without filtering, there is no difference between a
float and int texture fetch.
On Thu, Jun 4, 2015 at 5:50 PM, Rob Clark <robdclark at gmail.com> wrote:
> From: Rob Clark <robclark at 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(-)
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
More information about the mesa-dev