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>
This commit is contained in:
Emma Anholt 2021-06-17 10:46:28 -07:00 committed by Marge Bot
parent 6402dc17b3
commit d4203bf7ab
1 changed files with 2 additions and 0 deletions

View File

@ -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;