mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 14:08:05 +02:00
zink: also check for device lost reset on flush
if there's a reset callback available, call that instead of cycling Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9885>
This commit is contained in:
parent
dc5d02ca54
commit
11926342e3
1 changed files with 9 additions and 4 deletions
|
|
@ -1381,11 +1381,16 @@ flush_batch(struct zink_context *ctx)
|
|||
zink_end_render_pass(ctx, batch);
|
||||
zink_end_batch(ctx, batch);
|
||||
|
||||
incr_curr_batch(ctx);
|
||||
if (ctx->batch.state->is_device_lost && ctx->reset.reset) {
|
||||
ctx->is_device_lost = true;
|
||||
ctx->reset.reset(ctx->reset.data, PIPE_GUILTY_CONTEXT_RESET);
|
||||
} else {
|
||||
incr_curr_batch(ctx);
|
||||
|
||||
zink_start_batch(ctx, batch);
|
||||
if (zink_screen(ctx->base.screen)->info.have_EXT_transform_feedback && ctx->num_so_targets)
|
||||
ctx->dirty_so_targets = true;
|
||||
zink_start_batch(ctx, batch);
|
||||
if (zink_screen(ctx->base.screen)->info.have_EXT_transform_feedback && ctx->num_so_targets)
|
||||
ctx->dirty_so_targets = true;
|
||||
}
|
||||
}
|
||||
|
||||
struct zink_batch *
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue