From 2a721b1b798d7078e8fa7ff52c7698d6cd625162 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 26 Sep 2016 16:14:51 -0700 Subject: [PATCH] vc4: Emit perf debug when we fall back to quad clears. --- src/gallium/drivers/vc4/vc4_draw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/vc4/vc4_draw.c b/src/gallium/drivers/vc4/vc4_draw.c index bbdb02010f6..56d91a27d7b 100644 --- a/src/gallium/drivers/vc4/vc4_draw.c +++ b/src/gallium/drivers/vc4/vc4_draw.c @@ -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, -- 2.30.2