From e092e945a71316c38cb6b67f63c0dded93501943 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 29 Apr 2026 15:44:02 +0200 Subject: [PATCH] radv: fix printing image format with RADV_DEBUG=img It should print the Vulkan format, not the pipe format. Signed-off-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_image.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index 69a7376dfd7..c2765a124a4 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -1374,10 +1374,9 @@ radv_image_print_info(struct radv_device *device, struct radv_image *image) 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; - const struct util_format_description *desc = radv_format_description(plane->format); uint64_t offset = ac_surface_get_plane_offset(pdev->info.gfx_level, &plane->surface, 0, 0); - fprintf(stderr, " Plane[%u]: vkformat=%s, offset=%" PRIu64 "\n", i, desc->name, offset); + fprintf(stderr, " Plane[%u]: vkformat=%s, offset=%" PRIu64 "\n", i, vk_Format_to_str(plane->format), offset); ac_surface_print_info(stderr, &pdev->info, surf); }