Mirror copied descriptors from the fingerprinted record #792
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!792
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@yualk on GitHub · 2026-11-25 07:41 UTC · original
yualk:fix-coherent-copied-descriptor→main· +302 −4 · 3 files · 2 commits · openDefect
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.
@iGoldenNinja on GitHub · 2026-11-25 07:57 UTC · original · edited 2026-11-25 08:37 UTC
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 comparison@ArturoWolff on GitHub · 2026-11-25 09:13 UTC · original
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.
@timorjay on GitHub · 2026-11-25 16:12 UTC · original
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
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.