mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 22:50:08 +01:00
u_blitter: don't fail mipmap generation for depth formats containing stencil
Bugzilla: https://bugzilla.freedesktop.org/show_bug.cgi?id=109754 Cc: 19.0 19.1 <mesa-stable@lists.freedesktop.org> Tested-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
This commit is contained in:
parent
3135ca4172
commit
4b11ed443b
1 changed files with 2 additions and 1 deletions
|
|
@ -2059,7 +2059,8 @@ void util_blitter_generate_mipmap(struct blitter_context *blitter,
|
|||
target = PIPE_TEXTURE_2D_ARRAY;
|
||||
|
||||
assert(tex->nr_samples <= 1);
|
||||
assert(!util_format_has_stencil(desc));
|
||||
/* Disallow stencil formats without depth. */
|
||||
assert(!util_format_has_stencil(desc) || util_format_has_depth(desc));
|
||||
|
||||
is_depth = desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue