From: Marek Olšák Date: Sat, 7 Jul 2012 21:06:15 +0000 (+0200) Subject: gallium/u_blitter: minify depth0 when initializing last_layer X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a730838a42c62b7729691b518a134017ff2d3b42;p=mesa.git gallium/u_blitter: minify depth0 when initializing last_layer Reviewed-by: Alex Deucher --- diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c index 47d0227a96d..99bde548e57 100644 --- a/src/gallium/auxiliary/util/u_blitter.c +++ b/src/gallium/auxiliary/util/u_blitter.c @@ -892,7 +892,7 @@ void util_blitter_default_src_texture(struct pipe_sampler_view *src_templ, src_templ->u.tex.last_level = srclevel; src_templ->u.tex.first_layer = 0; src_templ->u.tex.last_layer = - src->target == PIPE_TEXTURE_3D ? src->depth0 - 1 + src->target == PIPE_TEXTURE_3D ? u_minify(src->depth0, srclevel) - 1 : src->array_size - 1; src_templ->swizzle_r = PIPE_SWIZZLE_RED; src_templ->swizzle_g = PIPE_SWIZZLE_GREEN;