[Mesa-dev] [PATCH] ttn: add buffer texture type
Ilia Mirkin
imirkin at alum.mit.edu
Wed Aug 12 14:37:31 PDT 2015
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
On Wed, Aug 12, 2015 at 5:29 PM, Rob Clark <robdclark at gmail.com> wrote:
> From: Rob Clark <robclark at freedesktop.org>
>
> Signed-off-by: Rob Clark <robclark at freedesktop.org>
> ---
> src/gallium/auxiliary/nir/tgsi_to_nir.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/src/gallium/auxiliary/nir/tgsi_to_nir.c b/src/gallium/auxiliary/nir/tgsi_to_nir.c
> index 4130697..93dfb80 100644
> --- a/src/gallium/auxiliary/nir/tgsi_to_nir.c
> +++ b/src/gallium/auxiliary/nir/tgsi_to_nir.c
> @@ -999,6 +999,9 @@ static void
> setup_texture_info(nir_tex_instr *instr, unsigned texture)
> {
> switch (texture) {
> + case TGSI_TEXTURE_BUFFER:
> + instr->sampler_dim = GLSL_SAMPLER_DIM_BUF;
> + break;
> case TGSI_TEXTURE_1D:
> instr->sampler_dim = GLSL_SAMPLER_DIM_1D;
> break;
> --
> 2.4.3
>
> _______________________________________________
> 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