mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 20:18:12 +02:00
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:
parent
1ebc14bcb9
commit
e092e945a7
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue