gallium/util: handle PIPE_BUFFER in util_pipe_tex_to_tgsi_tex
authorMarek Olšák <marek.olsak@amd.com>
Sat, 16 Aug 2014 23:46:31 +0000 (01:46 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 19 Aug 2014 10:20:18 +0000 (12:20 +0200)
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/util/u_inlines.h

index e9526159ae33ea6c43823e5f9c1ae3bd973a7909..c80ec487ecef77b2a04acd699d022177f8a4682e 100644 (file)
@@ -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;