summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_blitter.c
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@vmware.com>2015-05-12 17:27:59 +0200
committerRoland Scheidegger <sroland@vmware.com>2015-05-13 22:57:50 +0200
commit2712f70d57a0df25db6371496eb567564a588e13 (patch)
treea5d77e86c0d991f3b86c479a0e3a815c51c53aaa /src/gallium/auxiliary/util/u_blitter.c
parentcf71e7093c301a1d3dc3e19d88d44a043ccadc7d (diff)
downloadexternal_mesa3d-2712f70d57a0df25db6371496eb567564a588e13.zip
external_mesa3d-2712f70d57a0df25db6371496eb567564a588e13.tar.gz
external_mesa3d-2712f70d57a0df25db6371496eb567564a588e13.tar.bz2
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 <sroland@vmware.com> Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'src/gallium/auxiliary/util/u_blitter.c')
-rw-r--r--src/gallium/auxiliary/util/u_blitter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c
index 9d087fe..24a5b93 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;