Revert "zink: always force flushes when originating from api frontend"

This reverts commit 03f049f497.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27560>
(cherry picked from commit 097e543c0a)
This commit is contained in:
Konstantin Seurer 2024-02-11 16:09:06 +01:00 committed by Eric Engestrom
parent 1528c6f524
commit a9c5611b49
2 changed files with 2 additions and 3 deletions

View file

@ -7184,7 +7184,7 @@
"description": "Revert \"zink: always force flushes when originating from api frontend\"",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "03f049f49730b8b1268f2975fc34ac2b1f9a4ef9",
"notes": null

View file

@ -3863,8 +3863,7 @@ zink_flush(struct pipe_context *pctx,
}
}
/* TODO: if swapchains gain timeline semaphore semantics, `flags` can be eliminated and no-op fence can return timeline id */
if (!batch->has_work && flags) {
if (!batch->has_work) {
if (pfence) {
/* reuse last fence */
fence = ctx->last_fence;