mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 10:20:20 +01:00
zink: reset queries when suspending if >50% of total pool is used
this is a great time for resets since there's never a renderpass active, so an early reset here may mean avoiding a renderpass split later Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10049>
This commit is contained in:
parent
f5dc4db35f
commit
00fc85a011
1 changed files with 2 additions and 0 deletions
|
|
@ -780,6 +780,8 @@ zink_suspend_queries(struct zink_context *ctx, struct zink_batch *batch)
|
|||
}
|
||||
if (query->needs_update)
|
||||
update_qbo(ctx, query);
|
||||
if (query->curr_query > NUM_QUERIES / 2)
|
||||
reset_pool(ctx, batch, query);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue