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

Author: Mike Blumenkrantz <[email protected]>
Date:   Tue Mar 16 14:34:46 2021 -0400

zink: remove query batch-tracking init from begin_query()

this is always created on startup now

Reviewed-by: Dave Airlie <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9626>

---

 src/gallium/drivers/zink/zink_query.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/gallium/drivers/zink/zink_query.c 
b/src/gallium/drivers/zink/zink_query.c
index 1fd37505ddc..6867a540f27 100644
--- a/src/gallium/drivers/zink/zink_query.c
+++ b/src/gallium/drivers/zink/zink_query.c
@@ -532,9 +532,6 @@ begin_query(struct zink_context *ctx, struct zink_batch 
*batch, struct zink_quer
    }
    if (q->vkqtype != VK_QUERY_TYPE_TRANSFORM_FEEDBACK_STREAM_EXT)
       vkCmdBeginQuery(batch->cmdbuf, q->query_pool, q->curr_query, flags);
-   if (!batch->active_queries)
-      batch->active_queries = _mesa_set_create(NULL, _mesa_hash_pointer, 
_mesa_key_pointer_equal);
-   assert(batch->active_queries);
    if (needs_stats_list(q))
       list_addtail(&q->stats_list, &ctx->primitives_generated_queries);
    p_atomic_inc(&q->fences);

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to