GPU: mirror descriptor heaps copied as bytes #305
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!305
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-305"
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?
@Flyander on GitHub · 2026-11-24 23:26 UTC · original
Flyander:fix/mirror-title-heap-byte-copies→main· +211 −0 · 4 files · 2 commits · openSummary
The host descriptor heap is updated when descriptor APIs call
mirror(). A title can also copy the runtime's descriptor record directly into a placed shader-visible heap as bytes; that bypassesmirror()and leaves the corresponding host slot null or stale.CreateSamplerfor the destination.Verification
cargo test --locked --workspace— passed; includes 111 GPU tests and 210 shader tests.cargo clippy --locked --workspace --all-targets --all-features -- -D warnings— passed.cargo xtask policy— 169 files passed.Scope
This closes the raw-copy synchronization path. It has not been shown to resolve the nondeterministic missing walls or roof reported in #62; this PR does not include a full title run.
@yualk on GitHub · 2026-11-25 07:18 UTC · original
I checked the integrated raw-copy path at
a26859fc5f512e0db0d7522d3da821c038378ab7. InHostHeap::mirror_copied, the fingerprint comes from the captured record, butmirror()reads the header from the current slot again. In an owned deterministic Windows D3D12 regression with two valid sampler records, publishing captured clamp A while the current slot contains wrap B installs B. Restoring A and sending its captured bytes again deduplicates against A's fingerprint, leaving B installed. No unmap, title data, or GPU draw is needed for this test.A narrow local follow-up decodes the header from the same record that was fingerprinted while preserving the normal API mirror and deferred view rules. The new installed-key regression fails on
a26859fand passes on RTX and explicit WARP with that follow-up; stable raw publication, capped range and ordinary descriptor-copy tests still pass. This checks coherent host slot selection, not shader-sampled output, world rendering or FPS. AI-assisted.@iGoldenNinja on GitHub · 2026-11-25 07:26 UTC · original
RTX 5080 16 GB, NVIDIA driver 617.14 and Windows 11 Pro 25H2 build 26200.9974, Series X diagnostics. I tested the raw descriptor mirroring path as integrated in main
a26859f, against8dd30ab. Both used the default second-stage relay and reached player control. The same five-minute prison replay had its first camera input within 23 ms after player selection and later input offsets within 16 ms.The
a26859flog reported a median 48,168 mirrored records/frame and 57.15 ms/frame across 257 reporting windows. PresentMon had 3.27 FPS / 523.28 ms P99 ona26859fand 3.93 FPS / 440.99 ms P99 on8dd30ab. The wall and ceiling drew on both at the same interior angle. Stepped shoulder artifacts remained. DRED reported no removal. This comparison covers the full main commit, so it leaves the performance impact of isolated mirroring open.Replay method and counters. OpenAI Codex (GPT-6) ran the replay and drafted this report.
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.