mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
panfrost/decode: Decode all cubemap faces
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
parent
e658f7225d
commit
3197b30c6e
1 changed files with 7 additions and 1 deletions
|
|
@ -1463,7 +1463,13 @@ pandecode_replay_vertex_tiler_postfix_pre(const struct mali_vertex_tiler_postfix
|
|||
pandecode_log(".swizzled_bitmaps = {\n");
|
||||
pandecode_indent++;
|
||||
|
||||
int bitmap_count = 1 + t->nr_mipmap_levels + t->unknown3A;
|
||||
int bitmap_count = MALI_NEGATIVE(t->nr_mipmap_levels);
|
||||
|
||||
if (!f.is_not_cubemap) {
|
||||
/* Miptree for each face */
|
||||
bitmap_count *= 6;
|
||||
}
|
||||
|
||||
int max_count = sizeof(t->swizzled_bitmaps) / sizeof(t->swizzled_bitmaps[0]);
|
||||
|
||||
if (bitmap_count > max_count) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue