Preserve pipeline cache retries and reject unmapped BVH nodes #2851
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2853"
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 Marvisak/VIctory. Originally posted by Lkxex on 2026-11-25T22:24:30Z.
Make the renderer report a miss when title-memory BVH pages are missing instead of interpreting zero-filled words as a node. Keep pipeline cache saves exclusive and retain dirty state after a failed write. Stop warm-up scans at the configured time limit and avoid reading inactive lanes in the native permute path.
Tested: Windows diagnostics build and 14 BVH tests, including hardware and WARP comparisons. No game run or frame-rate measurement.
AI use: Codex (GPT-6.2 Sol).
Imported from Marvisak/VIctory. Originally posted by kotekompotek on 2026-11-25T22:51:28Z.
Review: COMMENTED
Two clean changes: the warm time limit reads like the other VICTORY_ knobs and breaks both scan and workers; and the save restructuring is an improvement, not just a move — USED_CHANGED now survives a failed save (store(true) on the retry path) instead of being lost by the old mid-check swap, and LAST->state is the only lock order so no new cycle. LGTM.
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-25T23:00:39Z.
Tested
7ee73a3con Windows 11 (RTX 5090 + WARP +dxil.dll) againstmain(842b0cb) and found a deterministic test regression plus a serious lock-hold regression:1. Deterministic unit-test failure (root cause of the CI
Testsfailure)emit::lower::tests::ds_bpermute_wave64_preserves_32_lane_halffails deterministically atlower.rs:12193(wave64=false: left: true, right: false).lower.rs:3278-3280unconditionally emitsdx.op.waveGetLaneIndexfor all wave widths (includingwave64=false), breaking the Wave32 contract tested there.2. Lock-hold regression in
pipeline::library::save(library.rs:315-377)library.statemutex across the entirewrite_atomicallydisk write (rather than releasing it after serialization) stalls pipeline stores/saves for the full write duration ofLIBRARY_FILE(up to ~1.7 GB on NVIDIA). Releasing the lock before writing and re-acquiring briefly to clear/preserve the dirty flag on error preserves retry safety without holding the mutex across disk I/O.3. Bundling & test coverage
VICTORY_WARM_SECONDSintranslate.rs,library.rs,lower.rspermute, andbvh.rsunmapped-node residency checks) are bundled in one PR with zero new unit tests for any of the four. Splitting them into focused PRs with targeted regression tests (especially an unmapped-page BVH residency test and a save-failure retry test) would make each piece much easier to review and land.(Local suite notes:
emit::bvh_tests14/14,pipeline::library::tests11/11,cache::tests8/8,clippy, andpolicy190 ok all passed;emit::lower::testsfailed onds_bpermute_wave64_preserves_32_lane_half.)Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-26T03:19:46Z.
Automated triage for the maintainers.
Verdict: needs work. This bundles four unrelated changes (a
VICTORY_WARM_SECONDSlimit inapps/victory/src/translate.rs, retry on a failed save inpipeline/library.rs, the permute lane source inemit/lower.rs, and residency checks inemit/lower/bvh.rs), and none of them has a new test. Please split them into focused PRs.Specific problems:
emit::lower::tests::ds_bpermute_wave64_preserves_32_lane_halfnow seeswaveGetLaneIndexemitted on the wave32 path as well.library::savenow holdslibrary.state(andLAST) for the whole disk write of the library file, which blocks pipeline stores during the write. Release the lock before writing, and take it again only to clear or keep the dirty flags.bvh_lanesreturns a hard-coded triangle miss (0x7f800000, 0x3f800000, 0, 0) for a non-resident node. A change to emulated BVH results needs evidence for those values, such as hardware output or public documentation.translate.rshas misformatted lines (if time_is_up() { break; }).CI: failing.
Generated by Claude Code
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.