Browse Source

ttn: add buffer texture type

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Rob Clark <robclark@freedesktop.org>
tags/11.0-branchpoint
Rob Clark 10 years ago
parent
commit
fb07c49f48
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/gallium/auxiliary/nir/tgsi_to_nir.c

+ 3
- 0
src/gallium/auxiliary/nir/tgsi_to_nir.c View File

@@ -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;

Loading…
Cancel
Save