Mesa (main): radv: print number of levels with RADV_DEBUG=img

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Dec 29 15:53:38 UTC 2021


Module: Mesa
Branch: main
Commit: b249e700ac62c6e5eb5251b38902b0046c696e0e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b249e700ac62c6e5eb5251b38902b0046c696e0e

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Wed Dec 29 14:13:23 2021 +0100

radv: print number of levels with RADV_DEBUG=img

Might help debugging image related issues like DCC or HTILE.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14336>

---

 src/amd/vulkan/radv_image.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c
index ac030a5b357..2873e80c509 100644
--- a/src/amd/vulkan/radv_image.c
+++ b/src/amd/vulkan/radv_image.c
@@ -1702,9 +1702,9 @@ radv_image_print_info(struct radv_device *device, struct radv_image *image)
    fprintf(stderr,
            "  Info: size=%" PRIu64 ", alignment=%" PRIu32 ", "
            "width=%" PRIu32 ", height=%" PRIu32 ", "
-           "offset=%" PRIu64 ", array_size=%" PRIu32 "\n",
+           "offset=%" PRIu64 ", array_size=%" PRIu32 ", levels=%" PRIu32 "\n",
            image->size, image->alignment, image->info.width, image->info.height, image->offset,
-           image->info.array_size);
+           image->info.array_size, image->info.levels);
    for (unsigned i = 0; i < image->plane_count; ++i) {
       const struct radv_image_plane *plane = &image->planes[i];
       const struct radeon_surf *surf = &plane->surface;



More information about the mesa-commit mailing list