mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
st/mesa: Fix assertions for copying texture image to finalized miptree.
The layer dimension of array textures is not subject to mipmap minification.
OTOH we were missing an assertion for the depth dimension.
Fixes assertion failures with piglit {f,v}s-textureSize-sampler1DArrayShadow.
For some reason, they only resulted in piglit 'warn' results for me, not
failures.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=56211
NOTE: This is a candidate for the stable branches.
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Tested-by: Andreas Boll <andreas.boll.dev@gmail.com>
(cherry picked from commit eee1ff423c)
This commit is contained in:
parent
95c47f07a1
commit
8e01950625
1 changed files with 4 additions and 1 deletions
|
|
@ -1137,7 +1137,10 @@ copy_image_data_to_texture(struct st_context *st,
|
|||
|
||||
assert(src_level <= stImage->pt->last_level);
|
||||
assert(u_minify(stImage->pt->width0, src_level) == stImage->base.Width);
|
||||
assert(u_minify(stImage->pt->height0, src_level) == stImage->base.Height);
|
||||
assert(stImage->pt->target == PIPE_TEXTURE_1D_ARRAY ||
|
||||
u_minify(stImage->pt->height0, src_level) == stImage->base.Height);
|
||||
assert(stImage->pt->target == PIPE_TEXTURE_2D_ARRAY ||
|
||||
u_minify(stImage->pt->depth0, src_level) == stImage->base.Depth);
|
||||
|
||||
st_texture_image_copy(st->pipe,
|
||||
stObj->pt, dstLevel, /* dest texture, level */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue