From d4203bf7abaa24ad20d76267a663668600b45f40 Mon Sep 17 00:00:00 2001 From: Emma Anholt Date: Thu, 17 Jun 2021 10:46:28 -0700 Subject: [PATCH] freedreno: Add perf_debug() for our software conditional rendering. We could do it in hardware, and turnip does, but it hasn't bubbled up our priorities yet. At least make it more discoverable when you stumble over it. Part-of: --- src/gallium/drivers/freedreno/freedreno_resource.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/freedreno/freedreno_resource.c b/src/gallium/drivers/freedreno/freedreno_resource.c index e18cfa7c57b..bc66046a277 100644 --- a/src/gallium/drivers/freedreno/freedreno_resource.c +++ b/src/gallium/drivers/freedreno/freedreno_resource.c @@ -1395,6 +1395,8 @@ fd_render_condition_check(struct pipe_context *pctx) if (!ctx->cond_query) return true; + perf_debug("Implementing conditional rendering using a CPU read instaed of HW conditional rendering."); + union pipe_query_result res = {0}; bool wait = ctx->cond_mode != PIPE_RENDER_COND_NO_WAIT && ctx->cond_mode != PIPE_RENDER_COND_BY_REGION_NO_WAIT;