Module: Mesa
Branch: master
Commit: fb07c49f4883b12cef37748271d99e2fcf217a72
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=fb07c49f4883b12cef37748271d99e2fcf217a72

Author: Rob Clark <[email protected]>
Date:   Tue Aug 11 16:33:14 2015 -0400

ttn: add buffer texture type

Reviewed-by: Ilia Mirkin <[email protected]>
Signed-off-by: Rob Clark <[email protected]>

---

 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;

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to