From: Marek Olšák Date: Sat, 16 Aug 2014 23:46:31 +0000 (+0200) Subject: gallium/util: handle PIPE_BUFFER in util_pipe_tex_to_tgsi_tex X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=406ab1662cfc13c998c6c74fa425d11f062bdd40;p=mesa.git gallium/util: handle PIPE_BUFFER in util_pipe_tex_to_tgsi_tex Reviewed-by: Roland Scheidegger --- diff --git a/src/gallium/auxiliary/util/u_inlines.h b/src/gallium/auxiliary/util/u_inlines.h index e9526159ae3..c80ec487ece 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;