radv: print image array size in debug mode
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 2 Feb 2021 17:42:49 +0000 (12:42 -0500)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 4 Feb 2021 15:10:29 +0000 (10:10 -0500)
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8863>

src/amd/vulkan/radv_image.c

index 0bed943..f03e6bb 100644 (file)
@@ -1464,9 +1464,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 ", "
-                       "offset=%" PRIu64 "\n",
+                       "offset=%" PRIu64 ", array_size=%" PRIu32 "\n",
                image->size, image->alignment, image->info.width,
-               image->info.height, image->offset);
+               image->info.height, image->offset, image->info.array_size);
        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;