mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
pan/decode: Fix overrun decoding planes
We need to calculate the # of descriptors like we do on Midgard.
Fixes: ae9316f812 ("pan/decode: Decode Valhall surface descriptor")
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17842>
This commit is contained in:
parent
3225d60685
commit
07e9543270
1 changed files with 7 additions and 2 deletions
|
|
@ -712,8 +712,13 @@ pandecode_bifrost_texture(
|
|||
pandecode_indent++;
|
||||
|
||||
#if PAN_ARCH >= 9
|
||||
/* TODO: count */
|
||||
for (unsigned i = 0; i < 4; ++i)
|
||||
int plane_count = temp.levels * temp.array_size;
|
||||
|
||||
/* Miptree for each face */
|
||||
if (temp.dimension == MALI_TEXTURE_DIMENSION_CUBE)
|
||||
plane_count *= 6;
|
||||
|
||||
for (unsigned i = 0; i < plane_count; ++i)
|
||||
DUMP_ADDR(PLANE, temp.surfaces + i * pan_size(PLANE), "Plane %u:\n", i);
|
||||
#else
|
||||
struct pandecode_mapped_memory *tmem = pandecode_find_mapped_gpu_mem_containing(temp.surfaces);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue