mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
mesa: remove assertions that do not allow compressed 2D_ARRAY textures
NOTE: This is a candidate for the 8.0 branch. Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
33202b4876
commit
13b0af721a
1 changed files with 2 additions and 4 deletions
|
|
@ -1860,8 +1860,7 @@ _mesa_format_image_size(gl_format format, GLsizei width,
|
|||
const GLuint wblocks = (width + bw - 1) / bw;
|
||||
const GLuint hblocks = (height + bh - 1) / bh;
|
||||
const GLuint sz = wblocks * hblocks * info->BytesPerBlock;
|
||||
assert(depth == 1);
|
||||
return sz;
|
||||
return sz * depth;
|
||||
}
|
||||
else {
|
||||
/* non-compressed */
|
||||
|
|
@ -1887,8 +1886,7 @@ _mesa_format_image_size64(gl_format format, GLsizei width,
|
|||
const uint64_t wblocks = (width + bw - 1) / bw;
|
||||
const uint64_t hblocks = (height + bh - 1) / bh;
|
||||
const uint64_t sz = wblocks * hblocks * info->BytesPerBlock;
|
||||
assert(depth == 1);
|
||||
return sz;
|
||||
return sz * depth;
|
||||
}
|
||||
else {
|
||||
/* non-compressed */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue