vc4: Emit perf debug when we fall back to quad clears.
authorEric Anholt <eric@anholt.net>
Mon, 26 Sep 2016 23:14:51 +0000 (16:14 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 28 Sep 2016 15:31:14 +0000 (08:31 -0700)
src/gallium/drivers/vc4/vc4_draw.c

index bbdb020..56d91a2 100644 (file)
@@ -488,6 +488,8 @@ vc4_clear(struct pipe_context *pctx, unsigned buffers,
         if ((buffers & PIPE_CLEAR_DEPTHSTENCIL) != 0 &&
             (buffers & PIPE_CLEAR_DEPTHSTENCIL) != PIPE_CLEAR_DEPTHSTENCIL &&
             util_format_is_depth_and_stencil(vc4->framebuffer.zsbuf->format)) {
+                perf_debug("Partial clear of Z+stencil buffer, drawing a quad "
+                           "instead of fast clearing");
                 vc4_blitter_save(vc4);
                 util_blitter_clear(vc4->blitter,
                                    vc4->framebuffer.width,