From 49b7f0842ef093dc46d425b0bb7340b967741693 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 24 Jan 2023 08:26:26 +0100 Subject: [PATCH] radv: print depth image size with RADV_DEBUG=img This turned out to be useful when investigating a GPU hang. Signed-off-by: Samuel Pitoiset Part-of: --- 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 e0e148f..7394724 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -1778,9 +1778,9 @@ radv_image_print_info(struct radv_device *device, struct radv_image *image) fprintf(stderr, "Image:\n"); fprintf(stderr, " Info: size=%" PRIu64 ", alignment=%" PRIu32 ", " - "width=%" PRIu32 ", height=%" PRIu32 ", " + "width=%" PRIu32 ", height=%" PRIu32 ", depth=%" PRIu32 ", " "array_size=%" PRIu32 ", levels=%" PRIu32 "\n", - image->size, image->alignment, image->info.width, image->info.height, + image->size, image->alignment, image->info.width, image->info.height, image->info.depth, 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]; -- 2.7.4