Mesa (master): freedreno/a6xx: Log the tiling mode in resource layout debug.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Nov 26 19:17:54 UTC 2019


Module: Mesa
Branch: master
Commit: 997b8d474901f1955ead4479d5de63eb9f150cb7
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=997b8d474901f1955ead4479d5de63eb9f150cb7

Author: Eric Anholt <eric at anholt.net>
Date:   Wed Nov 20 20:54:27 2019 -0800

freedreno/a6xx: Log the tiling mode in resource layout debug.

This was important for figuring out what went wrong with the layout
refactor.

Acked-by: Rob Clark <robdclark at chromium.org>

---

 src/gallium/drivers/freedreno/a6xx/fd6_resource.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_resource.c b/src/gallium/drivers/freedreno/a6xx/fd6_resource.c
index 1dd2fa1381e..d246e27b5b1 100644
--- a/src/gallium/drivers/freedreno/a6xx/fd6_resource.c
+++ b/src/gallium/drivers/freedreno/a6xx/fd6_resource.c
@@ -145,12 +145,12 @@ setup_slices(struct fd_resource *rsc, uint32_t alignment, enum pipe_format forma
 		size += slice->size0 * depth * layers_in_level;
 
 #if 0
-		debug_printf("%s: %ux%ux%u@%u:\t%2u: stride=%4u, size=%6u,%7u, aligned_height=%3u, blocks=%u, offset=0x%x\n",
+		fprintf(stderr, "%s: %ux%ux%u@%u:\t%2u: stride=%4u, size=%6u,%7u, aligned_height=%3u, blocks=%u, offset=0x%x tiling=%d\n",
 				util_format_name(prsc->format),
 				width, height, depth, rsc->cpp,
 				level, slice->pitch * rsc->cpp,
 				slice->size0, size, aligned_height, blocks,
-				slice->offset);
+				slice->offset, fd_resource_tile_mode(prsc, level));
 #endif
 
 		depth = u_minify(depth, 1);




More information about the mesa-commit mailing list