mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 21:30:09 +01:00
zink: break out query suspend functionality for reuse
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21534>
This commit is contained in:
parent
53c9f60ce4
commit
b4deaf7b2c
1 changed files with 9 additions and 3 deletions
|
|
@ -1112,10 +1112,10 @@ suspend_query(struct zink_context *ctx, struct zink_query *query)
|
|||
update_qbo(ctx, query);
|
||||
}
|
||||
|
||||
void
|
||||
zink_suspend_queries(struct zink_context *ctx, struct zink_batch *batch)
|
||||
static void
|
||||
suspend_queries(struct zink_context *ctx)
|
||||
{
|
||||
set_foreach(&batch->state->active_queries, entry) {
|
||||
set_foreach(&ctx->batch.state->active_queries, entry) {
|
||||
struct zink_query *query = (void*)entry->key;
|
||||
if (query->suspended)
|
||||
continue;
|
||||
|
|
@ -1130,6 +1130,12 @@ zink_suspend_queries(struct zink_context *ctx, struct zink_batch *batch)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
zink_suspend_queries(struct zink_context *ctx, struct zink_batch *batch)
|
||||
{
|
||||
suspend_queries(ctx);
|
||||
}
|
||||
|
||||
void
|
||||
zink_resume_queries(struct zink_context *ctx, struct zink_batch *batch)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue