projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aab3912
)
ttn: add buffer texture type
author
Rob Clark
<robclark@freedesktop.org>
Tue, 11 Aug 2015 20:33:14 +0000
(16:33 -0400)
committer
Rob Clark
<robclark@freedesktop.org>
Wed, 12 Aug 2015 22:37:43 +0000
(18:37 -0400)
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/auxiliary/nir/tgsi_to_nir.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/nir/tgsi_to_nir.c
b/src/gallium/auxiliary/nir/tgsi_to_nir.c
index
4130697
..
93dfb80
100644
(file)
--- 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;