projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91cf9fe
)
gallium/u_blitter: minify depth0 when initializing last_layer
author
Marek Olšák
<maraeo@gmail.com>
Sat, 7 Jul 2012 21:06:15 +0000
(23:06 +0200)
committer
Marek Olšák
<maraeo@gmail.com>
Thu, 12 Jul 2012 00:08:30 +0000
(
02:08
+0200)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/auxiliary/util/u_blitter.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_blitter.c
b/src/gallium/auxiliary/util/u_blitter.c
index 47d0227a96df2d69463fb845878508a3731c0b5c..99bde548e57bc9e0ec243aa547c271029a81851d 100644
(file)
--- 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;