From: Eric Anholt Date: Wed, 5 Oct 2016 21:22:09 +0000 (-0700) Subject: vc4: Add the format name in miptree_debug. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8810270d066eced5261ab407e2be4e902b102671;p=mesa.git 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. --- 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,