From 8810270d066eced5261ab407e2be4e902b102671 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 5 Oct 2016 14:22:09 -0700 Subject: [PATCH] vc4: Add the format name in miptree_debug. I was curious if my Z/S buffer was actually ZS or ZX, and the vc4 format of "0" didn't tell me much. --- src/gallium/drivers/vc4/vc4_resource.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/vc4/vc4_resource.c b/src/gallium/drivers/vc4/vc4_resource.c index 9932bb30438..5f8b6b0f715 100644 --- a/src/gallium/drivers/vc4/vc4_resource.c +++ b/src/gallium/drivers/vc4/vc4_resource.c @@ -419,9 +419,11 @@ vc4_setup_slices(struct vc4_resource *rsc) [VC4_TILING_FORMAT_T] = 'T' }; fprintf(stderr, - "rsc setup %p (format %d), %dx%d: " + "rsc setup %p (format %s: vc4 %d), %dx%d: " "level %d (%c) -> %dx%d, stride %d@0x%08x\n", - rsc, rsc->vc4_format, + rsc, + util_format_short_name(prsc->format), + rsc->vc4_format, prsc->width0, prsc->height0, i, tiling_chars[slice->tiling], level_width, level_height, -- 2.30.2