From: Roland Scheidegger Date: Tue, 12 May 2015 15:27:59 +0000 (+0200) Subject: gallium/util: fix blitter sampler view target initialization X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2712f70d57a0df25db6371496eb567564a588e13;p=mesa.git gallium/util: fix blitter sampler view target initialization This was missing, and drivers relying on the target in the view could get into quite some trouble. Signed-off-by: Roland Scheidegger Reviewed-by: Dave Airlie Reviewed-by: Marek Olšák --- diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c index 9d087fe8a66..24a5b93e199 100644 --- a/src/gallium/auxiliary/util/u_blitter.c +++ b/src/gallium/auxiliary/util/u_blitter.c @@ -1306,6 +1306,7 @@ void util_blitter_default_src_texture(struct pipe_sampler_view *src_templ, unsigned srclevel) { memset(src_templ, 0, sizeof(*src_templ)); + src_templ->target = src->target; src_templ->format = util_format_linear(src->format); src_templ->u.tex.first_level = srclevel; src_templ->u.tex.last_level = srclevel;