Mesa (master): freedreno/a6xx: improve setup_slices() debug msgs

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Dec 22 20:32:08 UTC 2018


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

Author: Rob Clark <robdclark at gmail.com>
Date:   Tue Dec 18 10:33:19 2018 -0500

freedreno/a6xx: improve setup_slices() debug msgs

Signed-off-by: Rob Clark <robdclark at gmail.com>

---

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

diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_resource.c b/src/gallium/drivers/freedreno/a6xx/fd6_resource.c
index 2b695e6969..4f5ab90266 100644
--- a/src/gallium/drivers/freedreno/a6xx/fd6_resource.c
+++ b/src/gallium/drivers/freedreno/a6xx/fd6_resource.c
@@ -111,17 +111,16 @@ setup_slices(struct fd_resource *rsc, uint32_t alignment, enum pipe_format forma
 			slice->size0 = align(blocks * rsc->cpp, alignment);
 		}
 
+		size += slice->size0 * depth * layers_in_level;
+
 #if 0
-		debug_printf("%s: %ux%ux%u@%u: %2u: stride=%4u, size=%7u, aligned_height=%3u\n",
+		debug_printf("%s: %ux%ux%u@%u:\t%2u: stride=%4u, size=%6u,%7u, aligned_height=%3u, blocks=%u\n",
 				util_format_name(prsc->format),
-				prsc->width0, prsc->height0, prsc->depth0, rsc->cpp,
+				width, height, depth, rsc->cpp,
 				level, slice->pitch * rsc->cpp,
-				slice->size0 * depth * layers_in_level,
-				aligned_height);
+				slice->size0, size, aligned_height, blocks);
 #endif
 
-		size += slice->size0 * depth * layers_in_level;
-
 		width = u_minify(width, 1);
 		height = u_minify(height, 1);
 		depth = u_minify(depth, 1);




More information about the mesa-commit mailing list