[Mesa-dev] [PATCH 0/2] tgsi: texture type support

Marek Olšák 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.

Marek

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(-)
>
> --
> 2.4.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list