freedreno: Log number of draw for sysmem passes
authorKristian H. Kristensen <hoegsberg@chromium.org>
Thu, 24 Jan 2019 19:38:51 +0000 (11:38 -0800)
committerKristian H. Kristensen <hoegsberg@chromium.org>
Mon, 11 Feb 2019 20:26:21 +0000 (12:26 -0800)
Reviewed-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Kristian H. Kristensen <hoegsberg@chromium.org>
src/gallium/drivers/freedreno/freedreno_gmem.c

index be82a1eed879271e9ec4f27ad534ad09e5504537..41fc1d0a0d4e109c83f5297903fa06144feb9a71 100644 (file)
@@ -443,10 +443,11 @@ fd_gmem_render_tiles(struct fd_batch *batch)
                DBG("%p: rendering non-draw", batch);
                ctx->stats.batch_nondraw++;
        } else if (sysmem) {
-               DBG("%p: rendering sysmem %ux%u (%s/%s)",
+               DBG("%p: rendering sysmem %ux%u (%s/%s), num_draws=%u",
                        batch, pfb->width, pfb->height,
                        util_format_short_name(pipe_surface_format(pfb->cbufs[0])),
-                       util_format_short_name(pipe_surface_format(pfb->zsbuf)));
+                       util_format_short_name(pipe_surface_format(pfb->zsbuf)),
+                       batch->num_draws);
                if (ctx->query_prepare)
                        ctx->query_prepare(batch, 1);
                render_sysmem(batch);