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

Author: Mike Blumenkrantz <[email protected]>
Date:   Wed Mar  1 09:28:23 2023 -0500

zink: only resume queries inside renderpasses from set_active_query_state

match new default query behavior

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21628>

---

 src/gallium/drivers/zink/zink_query.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/zink/zink_query.c 
b/src/gallium/drivers/zink/zink_query.c
index bfc0ed6c887..a0c536aa269 100644
--- a/src/gallium/drivers/zink/zink_query.c
+++ b/src/gallium/drivers/zink/zink_query.c
@@ -1223,7 +1223,7 @@ zink_set_active_query_state(struct pipe_context *pctx, 
bool enable)
    struct zink_batch *batch = &ctx->batch;
    if (ctx->queries_disabled)
       zink_suspend_queries(ctx, batch);
-   else
+   else if (ctx->batch.in_rp)
       zink_resume_queries(ctx, batch);
 }
 

Reply via email to