Mesa (main): freedreno: Add perf_debug() for our software conditional rendering.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jun 17 23:04:41 UTC 2021


Module: Mesa
Branch: main
Commit: d4203bf7abaa24ad20d76267a663668600b45f40
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d4203bf7abaa24ad20d76267a663668600b45f40

Author: Emma Anholt <emma at anholt.net>
Date:   Thu Jun 17 10:46:28 2021 -0700

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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11452>

---

 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;



More information about the mesa-commit mailing list