Module: Mesa Branch: main Commit: 1c62c6bafd67d4b375464521a155a12addf9e01b URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1c62c6bafd67d4b375464521a155a12addf9e01b
Author: Mike Blumenkrantz <[email protected]> Date: Thu May 12 17:14:57 2022 -0400 zink: remove implicit query resets this existed in order to reset query pools in advance so they would never overflow. now the pools are reset every time the query is started, so this behavior is no longer necessary fixes #6475 Fixes: 57dd05616fa ("zink/query: rewrite the query handling code to pass validation.") Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16484> --- src/gallium/drivers/zink/zink_query.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/gallium/drivers/zink/zink_query.c b/src/gallium/drivers/zink/zink_query.c index e50e220e12b..b3cc6caf788 100644 --- a/src/gallium/drivers/zink/zink_query.c +++ b/src/gallium/drivers/zink/zink_query.c @@ -1026,15 +1026,6 @@ suspend_query(struct zink_context *ctx, struct zink_query *query) end_query(ctx, &ctx->batch, query); if (query->needs_update) update_qbo(ctx, query); - /* do an implicit copy+reset if: - * - query is being read from and >50% of pool is used - * - >90% of pool is used - * - * this avoids overflow - */ - struct zink_query_start *start = util_dynarray_top_ptr(&query->starts, struct zink_query_start); - if (get_num_starts(query) == 100 || (get_num_starts(query) && start->vkq[0]->query_id > NUM_QUERIES / 2) || (start->vkq[0]->query_id > NUM_QUERIES * 0.9)) - reset_qbos(ctx, query); } void
