GPU: release ready queues before forcing present waits #216
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/216"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from fxceless/victory-fork. Originally posted by avt0m4t48 on 2026-11-24T22:36:38Z.
Refs #143. Drain work whose waits are reached under the queue release lock before forcing any remaining waits at
Present. The regression sets up a blocked consumer first, then makes its producer ready before the usual wake. The old forced drain runs the consumer first and leaves the shared sequence fence at 1. The patched drain runs the producer first and leaves it at 2.The source-built Windows x64 regression fails before and passes after under Wine 10.
VICTORY_WAIT_FORCE=0passes the baseline control, and the patched exact test also passes with late-wait stage 3. The GPU library suite gave 111 passed and one ignored. With diagnostics it gave 118 passed and one ignored. GPU-dependent cases can skip on this environment. The regression itself exercises queue and fence order before DXGI presentation.The in-game symptom in #143 still needs correlation. AI-assisted using Codex. Source-built inputs only.
Imported from fxceless/victory-fork. Originally posted by Filip722 on 2026-11-25T11:57:45Z.
I reproduced the producer/consumer ordering test on Bazzite 44 with GE-Proton 11-14's Wine, using a Windows MSVC release build and Rust 1.98.1.
With the same fixture on parent
2119b0e, the forced-release control left the sequence at 1 instead of 2. The control reached 2 with forcing disabled. On exact PR head421bf51, the fixture passed with forcing enabled. Both builds usedVICTORY_QUEUE_WAIT=1andVICTORY_LATE_WAIT=0.This fixture uses zero present planes to exercise fence ordering. Prepared and run with OpenAI Codex assistance.
Imported from fxceless/victory-fork. Originally posted by avt0m4t48 on 2026-11-25T14:11:16Z.
Merged
0b0074einto this branch atdb3d91e. The ready-work pass and forced fallback still run under the same release lock. The async submit and present paths added on main remain available.On Windows, all five queue tests passed on the updated branch. The exact regression also passed with late-wait stage 3 and async submission enabled. On main, with forcing enabled, the regression again ended at fence value 1 instead of 2. Turning forcing off passed the baseline control. These are synthetic queue-order checks before presentation.
Exact-head and baseline Windows run
AI-assisted using Codex.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.