freedreno: Include the layer size in layout debug.
authorEric Anholt <eric@anholt.net>
Thu, 12 Dec 2019 21:54:43 +0000 (13:54 -0800)
committerMarge Bot <eric+marge@anholt.net>
Tue, 4 Feb 2020 23:18:00 +0000 (23:18 +0000)
It's been many of my bugs so far.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3059>

src/freedreno/fdl/freedreno_layout.c

index 345b33deb83a7fb97be5c0a815d558e962f744ea..7c0a7052a52d254412f0c01ad14f8c41317a4550 100644 (file)
@@ -50,7 +50,7 @@ fdl_dump_layout(struct fdl_layout *layout)
                uint32_t tile_mode = (layout->ubwc_size ?
                                layout->tile_mode : fdl_tile_mode(layout, level));
 
-               fprintf(stderr, "%s: %ux%ux%u@%ux%u:\t%2u: stride=%4u, size=%6u,%6u, aligned_height=%3u, offset=0x%x,0x%x tiling=%d\n",
+               fprintf(stderr, "%s: %ux%ux%u@%ux%u:\t%2u: stride=%4u, size=%6u,%6u, aligned_height=%3u, offset=0x%x,0x%x, layersz %5u,%5u tiling=%d\n",
                                util_format_name(layout->format),
                                u_minify(layout->width0, level),
                                u_minify(layout->height0, level),
@@ -61,6 +61,7 @@ fdl_dump_layout(struct fdl_layout *layout)
                                slice->size0, ubwc_slice->size0,
                                slice->size0 / (slice->pitch * layout->cpp),
                                slice->offset, ubwc_slice->offset,
+                               layout->layer_size, layout->ubwc_size,
                                tile_mode);
        }
 }