freedreno/a6xx: improve setup_slices() debug msgs
authorRob Clark <robdclark@gmail.com>
Tue, 18 Dec 2018 15:33:19 +0000 (10:33 -0500)
committerRob Clark <robdclark@gmail.com>
Sat, 22 Dec 2018 20:28:24 +0000 (15:28 -0500)
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a6xx/fd6_resource.c

index 2b695e6969dcca9cb68aefeadc650f78e262c6e9..4f5ab902662fa58fb77cb1800a5117bb70ce5e90 100644 (file)
@@ -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);