Mirror copied descriptors from the fingerprinted record #792
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/792"
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 yualk on 2026-11-25T07:41:50Z.
Defect
HostHeap::mirror_copiedfingerprints captured record bytes, then rereads the live guest slot throughmirror. If the live record changes A→B between those operations, it caches fingerprint A while installing B. When A later reappears, deduplication suppresses the repair.Fix
Decode the same immutable 12-byte header that was fingerprinted and pass it to the existing
mirror_recordpath. Ordinary API-driven mirroring is unchanged.Reproduction
The test interns valid point-clamp A and point-wrap B records, captures A while the live slot contains B, and consumes the published sampler in a fenced D3D12 shader. A 2×1 texture contains independent bytes
[17, 231]; the shader also reads a stable clamp and a same-shaped wrap decoy.[17, 231, 61]— changed slot incorrectly samples wrap B.[231, 231, 61].[231, 231, 61].The direct list retires, the fence completes, and device status remains valid before UAV readback. Existing copied-view/cap/stable controls also pass.
Limits
This proves captured bytes → installed descriptor → GPU-consumed sampler value in the owned fixture. It does not claim that a specific title draw reaches a byte-copied sampler or that it fixes lighting/gameplay by itself.
Imported from fxceless/victory-fork. Originally posted by iGoldenNinja on 2026-11-25T07:57:57Z.
Independent RTX 5080 hardware check, NVIDIA 617.14, Windows 11 Pro 25H2 build 26200.9974, Ryzen 9 5900X. I copied only this PR's two synthetic sampler fixtures and HLSL file onto parent
9376fd6and compared it with clean head7793886.[17, 231, 61].[231, 231, 61].This reproduces the changed sampler value on the RTX 5080 with the stable clamp and decoy outputs agreeing. Test scope and pinned revisions. OpenAI Codex (GPT-6) ran the tests and drafted this report.
Gameplay follow-up on the same hardware. Both builds used the same local archive and replay support and byte-matched warm caches, with default readback. Both reached the first controllable prison room and finished a matched 90-second route. Parent
9376fd6displayed 322 application frames at 3.56 FPS and 470.38 ms P99. PR head7793886displayed 320 at 3.54 FPS and 493.93 ms P99. Both refused the same eight D3D12 pipelines (E_INVALIDARG), with no logged device removal. The matched view still showed the sharp room lighting boundary and stepped character edges. This was one run per build, with no live instrumentation for the descriptor mismatch. Full comparisonImported from fxceless/victory-fork. Originally posted by ArturoWolff on 2026-11-25T09:13:10Z.
Reproduced yualk’s sampler result on Linux without game assets or a physical GPU (GE-Proton11-14, Mesa llvmpipe 26.3.1). Same two tests, same shader binary, same prefix and adapter:
9376fd6+ PR fixtures17 / 231 / 617793886231 / 231 / 61For anyone repeating this on llvmpipe: the unmodified test binary stopped at D3D12 host/heap setup. Requesting feature level 11_0 in the test host only got the record test through, but
CreateRootSignaturestill returned0x80004005on thecs_5_1path. For the comparison above, both builds used that same test-host change and the PR’s unchanged HLSL precompiled via DXC (-T cs_6_0 -E main, SHA-256422709d38d1b2b66b4b32dda6ac80ea2fbfedeaabb06e8b2ffd20a44962aff97). No changes to either revision’s descriptor implementation. Only the changed slot flipped, matching the Windows results above. This checks the sampler after dispatch, not a retail draw, lighting, or frame time.AI disclosure: Hermes Agent ran the Linux comparison and wrote this comment for ArturoWolff.
Imported from fxceless/victory-fork. Originally posted by timorjay on 2026-11-25T16:12:00Z.
Downstream hardware check on an RTX 5090 D v2 (24 GB, NVIDIA 617.42), in an offline Windows 11 Sandbox. Flamingo
229a052calso has a batchedmirror_copied_pagepath. I adapted yualk’s test so its changed sampler goes through that path, and ran the same two synthetic tests and HLSL against both builds.229a052c, tests addedThe first texture contains 17 and 231. The copied record specifies clamp, while the live slot has changed to wrap. The GPU readback distinguishes the two. The descriptor test also failed on the original and passed on the patched build. All three GPU values were read after the fence completed.
For forks carrying the batched path, it needs to use the same captured header as the fingerprint, just like the single-record path in this PR. In two views of the same in-game checkpoint I saw no FPS gain from the change. Thanks for supplying the original fixture and fix.
AI-assisted with 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.