radv: fix printing image format with RADV_DEBUG=img

It should print the Vulkan format, not the pipe format.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41265>
This commit is contained in:
Samuel Pitoiset 2026-04-29 15:44:02 +02:00 committed by Marge Bot
parent 1ebc14bcb9
commit e092e945a7

View file

@ -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);
}