zink: reset all fences when waiting on batch state
at this point we know all the states are available, so we can shortcut future state-finding Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9787>
This commit is contained in:
committed by
Marge Bot
parent
34a2f96f59
commit
b741e270cd
@@ -1837,8 +1837,10 @@ zink_fence_wait(struct pipe_context *pctx)
|
||||
|
||||
if (ctx->batch.has_work)
|
||||
pctx->flush(pctx, NULL, PIPE_FLUSH_HINT_FINISH);
|
||||
if (ctx->last_fence)
|
||||
if (ctx->last_fence) {
|
||||
zink_fence_finish(zink_screen(pctx->screen), pctx, ctx->last_fence, PIPE_TIMEOUT_INFINITE);
|
||||
zink_batch_reset_all(ctx);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user