mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
zink: stall when we start getting a lot of uncompleted batches
temporary oom handling, though it's unrealistic for this to be hit Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9787>
This commit is contained in:
parent
c39295a24b
commit
34a2f96f59
1 changed files with 1 additions and 1 deletions
|
|
@ -1824,7 +1824,7 @@ zink_maybe_flush_or_stall(struct zink_context *ctx)
|
|||
if (ctx->batch.state->resource_size >= screen->total_mem / 10)
|
||||
flush_batch(ctx);
|
||||
|
||||
if (ctx->resource_size >= screen->total_mem / 10) {
|
||||
if (ctx->resource_size >= screen->total_mem / 10 || _mesa_hash_table_num_entries(&ctx->batch_states) > 10) {
|
||||
zink_fence_finish(zink_screen(ctx->base.screen), &ctx->base, ctx->last_fence, PIPE_TIMEOUT_INFINITE);
|
||||
zink_batch_reset_all(ctx);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue