The inplace gate enforces the module's own rule about late wait #1363
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1363"
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 trustno1-coder/VIctory-NVIDIA. Originally posted by HailLucifer666 on 2026-11-28T18:03:50Z.
inplace.rs's own doc has said it since before this fork existed: "Do not combine 2 with late wait" — stage 2 places buffers over title memory and assumes every submission is waited for, andVICTORY_LATE_WAITdoes not wait, so a buffer a flight still writes can be handed the title with its shader writes in flight. Nothing enforced it: asking for the combination got the hazard, silently, on every start.The change:
safe_level(asked, late_wait)—VICTORY_INPLACE=2withVICTORY_LATE_WAITruns at 1, which assumes nothing about waits; everything else passes exactly as asked.level()applies the gate at its single read site, and theOnceLockmakes the warning once (asked level, running level, and the reason quoted from the module's own rule).Tests and probes (
inplace::tests::an_inplace_level_of_2_with_late_wait_runs_at_1): the forbidden combination runs at 1; 2 alone, 1 with late wait, and 0 all pass through exactly as asked. Both mutation probes ran red and were restored, recorded in the test file: the fallback changed to 2 (a no-op gate), and the level-2 condition changed to late-wait-only (which would wrongly downgrade 1).Local: victory-gpu 466 passed / 0 failed / 36 ignored, clippy
--all-targets --all-features -D warningsclean. Stacks on #1290 → #1294 → #1326 → #1328 → #1348 → #1357 → #1360.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.