[Mesa-dev] [PATCH 1/6] gallium/util: handle PIPE_BUFFER in util_pipe_tex_to_tgsi_tex

Marek Olšák maraeo at gmail.com
Mon Aug 18 14:52:53 PDT 2014


From: Marek Olšák <marek.olsak at amd.com>

---
 src/gallium/auxiliary/util/u_inlines.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/auxiliary/util/u_inlines.h b/src/gallium/auxiliary/util/u_inlines.h
index e952615..c80ec48 100644
--- a/src/gallium/auxiliary/util/u_inlines.h
+++ b/src/gallium/auxiliary/util/u_inlines.h
@@ -565,6 +565,9 @@ util_pipe_tex_to_tgsi_tex(enum pipe_texture_target pipe_tex_target,
                           unsigned nr_samples)
 {
    switch (pipe_tex_target) {
+   case PIPE_BUFFER:
+      return TGSI_TEXTURE_BUFFER;
+
    case PIPE_TEXTURE_1D:
       assert(nr_samples <= 1);
       return TGSI_TEXTURE_1D;
-- 
1.9.1



More information about the mesa-dev mailing list