Pipeline book loses masked pixel variants, leaving warm --used without twin recipes #3860
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA#3860
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@SergDi on GitHub · 2026-11-30 09:32 UTC · original
Problem
On
41adb55167fa778fcaa5dc36fa18a1fa8dacd657(v2026.11.29.05), masked pixel-shader twins do not have reconstructible recipes in the known-pipeline book. Consequentlywarm --usedand recipe-based prefetch cannot prepare those variants ahead of their first runtime request.This is a code-level cache/serialization reproduction, not a claim of measured FPS loss or disappearing geometry. I searched existing issues/PRs for masked twins, known-book serialization and warm coverage; #1407 introduces sample-mask behavior, but I did not find a report of this recipe gap.
Code path
host_pipeline_maskedcreates a Pending withShader::masked()and goes throughmade_or_start, which records the used key. It does not callknown::note; the ordinaryhand_outpath does.Book::notestores stage plus container hash, without the masked flag. The twin and plain shader share the container.known::parsereconstructs the ordinary shader. A manually noted masked recipe therefore comes back with the plain Pending key.Pinned locations: masked creation, book serialization, recipe reconstruction.
Synthetic reproduction
The test-only patch below explicitly notes a plain pixel pipeline and its twin in a scratch book, flushes it, reads both recipes and reconstructs their Pending keys. Input is an arbitrary synthetic byte string; it does not translate or dispatch a title shader and needs no game data.
Expected: both distinct keys survive. Observed RED:
the masked twin comes back as the plain pipeline(only the plain reconstructed key remains). Windows 11 26200, pinned toolchain, RTX 4080 system; this is a serialization test, not a GPU execution test.Proposal for maintainer input
A local, undeployed prototype records the twin at creation and preserves a
MASKED=0x80bit in each pipeline entry's stage byte, restoring.masked()on read. It makes this test pass;pipeline::knownpasses 6 tests andpipeline::makepasses 30. This is not a production-ready compatibility claim: old/new reader combinations, graphics/mesh recipes and an end-to-end warm run still need tests. An older reader would skip an entry with the flagged stage rather than reconstruct it, by the current parser's bounds check; that behavior has not been tested as a compatibility contract.Would a stage flag be acceptable, or should this be a versioned recipe field? I have a test and local prototype; I have not deployed a format change or opened a fix PR.
Runtime limits
This does not mean a twin is driver-compiled on every launch. The persistent host pipeline library can load a previously created twin; the driver cache may also accelerate creation. The demonstrated defect is missing recipe coverage. While a twin is unavailable the draw falls back to the ordinary pipeline, so missing geometry is not established here. Measuring benefit requires separating first requests, library hits, actual creations and guard deferrals for masked variants.
AI assistance: Claude prepared the synthetic reproduction and prototype and ran the Windows tests; Codex reviewed the evidence and wording. No game assets, screenshots, memory dumps or raw runtime logs are included.
masked-test.patch (test only)
@github-actions[bot] on GitHub · 2026-11-30 09:32 UTC · original
Please attach both logs from the run that went wrong. Without them we can only guess. Paste
%LOCALAPPDATA%into the address bar of File Explorer to get there.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
@cloph-dsp on GitHub · 2026-11-30 10:03 UTC · original
finding: the masked-twin recipe gap in #3860 is a small, synthetic-only, locally testable serialization case, but the fix is a persisted-format change (stage bit vs versioned recipe field) whose old-reader contract is untested, and the reporter already has a local prototype awaiting maintainer input. Holding off implementation to avoid a conflicting format PR; no game data involved. (AI-assisted: Hy4 flash)
@andrewpozdnakov7-jpg on GitHub · 2026-11-30 10:08 UTC · original
I checked the old/new reader interaction on Windows with the proposal's
0x80bit in the pipeline entry's pixel stage byte. The shader-blob table stayed in the existing format. The fixture uses generated byte strings and serializes a graphics state, then callsknown::recipesand compares the reconstructedPendingkeys.41adb551The old reader skipped the two flagged recipes and continued reading later plain records. The old writer preserved every existing byte when it appended an ordinary record to the mixed book. The new reader rebuilt the exact masked key for both vertex/pixel and mesh/pixel recipes. The temporary reader also passed all six
pipeline::knowntests, including this fixture.This supports the stage flag if the expected downgrade behavior is to leave masked warm recipes unavailable to the old release. Runtime recording of masked recipes and a full
warm --usedrun remain to be checked.If you reuse this compatibility regression case, please retain its authorship with
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>.@SergDi on GitHub · 2026-11-30 10:38 UTC · original
Thanks @andrewpozdnakov7-jpg — my independently prepared Windows compatibility tests agree with the old-reader behavior you reported. They also found one malformed-record check missing from my original local prototype.
Pinned reader/writer:
41adb551. All fixtures use generated byte strings; frozen record bytes are checked against the actual old and proposed writers, not taken from a title.0x81inside a mixed bookknown::makeon the flagged recipe0x80/0x87)Windows results: old-reader tests 8/8; original prototype + compatibility tests 11 passed / 1 expected failure,
a_mask_bit_on_a_stage_other_than_pixel_is_not_read; adding the pixel-only check gives 12/12. This correction concerns malformed-record robustness, not an observed gameplay defect.Below are two separate patches, each applied independently to clean
41adb551: the old-reader experiment, and the combined local proposal with compatibility tests and pixel-only correction. Neither is deployed. The stage-bit/versioning choice remains with the maintainer. My tests do not establish compatibility with every older release, alternating old/new writers in a full application run, or end-to-endwarm --usedbenefit. The persistent host pipeline library may already load a twin.Strict Clippy reported 24 diagnostics with none in the changed regions; I did not rerun a matched clean baseline for this task, so I do not claim a clean/no-new-lint gate.
AI assistance: Claude prepared the fixtures/proposal and ran the Windows tests; Codex reviewed the results. These patches contain synthetic data only.
old-reader-observed.patch — experiment on clean
41adb551combined-fix-tests-correction.patch — undeployed proposal on clean
41adb551pixel-only-correction.patch — reverse on combined proposal to reproduce RED
@danielsteman on GitHub · 2026-11-30 14:04 UTC · original
I opened #3974 with the stage-flag design from @SergDi's prototype, including the pixel-only check, with SergDi as co-author. It adds one thing beyond the prototype: the masked pipeline is now picked up from the prefetch through
make::adopt. Without that, a masked pipeline the prefetch had already started was built a second time.On the stage flag versus a versioned field: the flag leaves
known-shaders.binand every plain entry unchanged, byte for byte. Two independent Windows tests here showed that older builds skip only the flagged entries and keep reading and appending to the rest. A versioned field would change every entry, for a single bit.@SergDi, if you'd rather open your own PR, I'll close mine.