mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
zink: always force flushes when originating from api frontend
flags=0 is used for e.g., glFenceSync, which apps use to insert sync points
to determine when all prior work has completed. eliding these flushes into no-ops
is fine for all scenarios except when the last op was a present, in which
case the no-op (previous) fence will not sync as expected for the present and
graphical artifacts will result
in the future, this may be changed back to the previous behavior if/when presentation
gains timeline semaphore capabilities by providing the last timeline id
as a fence instead of the last batch
fixes #10386
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26935>
(cherry picked from commit 03f049f497)
This commit is contained in:
parent
572e3a1bfa
commit
35b321e9b8
2 changed files with 3 additions and 2 deletions
|
|
@ -3294,7 +3294,7 @@
|
|||
"description": "zink: always force flushes when originating from api frontend",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -3849,7 +3849,8 @@ zink_flush(struct pipe_context *pctx,
|
|||
}
|
||||
}
|
||||
|
||||
if (!batch->has_work) {
|
||||
/* 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 (pfence) {
|
||||
/* reuse last fence */
|
||||
fence = ctx->last_fence;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue