Repository navigation
Conversation
A successful sparse reservation returned before mirror tracking saw it. When a CPU view fit the sparse windows and its GPU view fell back to host address space, texture uploads read the empty GPU view. Register the reservation on each allocation path and invalidate cached texture sources when either end is released. Assisted-by: Codex (GPT-6)
|
Read of 1. Creating a pair does not bump 2. The integration test depends on the machine's memory layout. 3. Two assumptions worth a sentence in the PR. AI use: Claude Code, Claude Sonnet 5.5, read the code at the head above; the points are mine. |
A texture registered while a mirror pair was live kept the bare GPU address after the title released that view and paired its address again. Publish the mapping generation on insertion too, so the next texture submit can pick up the CPU backing. Cover same-address reuse independently of allocator placement and exercise the surviving texture on D3D12. Assisted-by: Codex (GPT-6)
|
Read of the 1. The generation gap is closed. 2. The layout dependence is gone. The two 3. The two assumptions are in the description ("interleaved same-size streams from different owners are outside that observation"). The silent One test-only coupling. The registry test's AI use: Claude Code, Claude Sonnet 5.5, read both heads and checked each line reference; the points are mine. |
|
Linux / AMD RDNA3 datapoint. Merged state: head Full suite, Not tested: retail titles (none here), Windows, RDNA4. Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting. |
|
Windows / NVIDIA retail test of Tested
Not tested
Run and written with Claude Code (Claude Opus 5.5). |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
A retail title reserves two 24 GiB views of the same physical pages. When its CPU view fits in the sparse windows, the early return in
VirtualAllocleaves that view out of mirror tracking. The Bink decoder writes the CPU view, but the texture upload reads empty memory. Part of #697, found while testing #822 and investigating #675.What is in it
Tested
XCL_SAMPLE_*inputs were unset.cargo build --workspaceandcargo test --workspace --no-fail-fast -- --test-threads=4. Clean main09940bb: 713 reported passed, 3 failed, 41 ignored (2 GPU cases reportedSKIPPEDwithin the pass count). PR head1b2b636: 714 reported passed, 3 failed, 41 ignored (2 GPU cases reportedSKIPPEDwithin the pass count). The native-wave64 cases were skipped on this adapter.cargo test --workspace --no-fail-fast -- --test-threads=1, the same head reported 717 passed, 0 failed and 41 ignored, including the same two GPU skips.cargo test -p xcl --test sparse_mirrors -- --nocapture: both revised cases failed on the old notification behavior and passed on the revision. The existing GPU texture-upload test, extended to hold its texture across unpair/re-pair, also failed on the old code and passed after the notification change.48e7434, cfg(test) tile-identity assertions) to1b2b636in a separate checkout, tree41906742e26b, gave 717 reported passed, 0 failed and 41 ignored, with 2 wave64 skips, using the same workspace build and four-thread test commands. The PR branch itself retains the original cubemap test and the results above.e9705bb) with eight windows, the same saved profile and initial shader cache. Frames 830, 920 and 1010 of the opening movie were uniformly green before the patch. With this runtime change on that same build, those frames showed the full-colour movie and XCL logged the 24 GiB pair. Four windows on unmodified Memory/configurable uma windows #822 also showed the movie.b54f6fewith four windows, the title reached intro Prestream and ended at+0x23cf683after 222.211 s and 1,625 presents. The four out-of-range RT SRVs all belonged to a distinct 2,199 MiB write-watched allocation. Allocation measurements on #585.Regression run
Release
scripts/smoke.ps1 -Game <read-only retail executable> -Seconds 60, with matching DXC settings.Main:
PR head:
Not tested
+0x23cf683with four and eight windows. With eight windows and this patch, the movie played but XboxBvhBuilder raised the 40-bit destination-address exception tracked in D3D12.X: GPU addresses above 2^40 make the title's BVH builder throw ("more than 40b of address set") #585. That same error also occurred on clean D3D12.X: an optional page budget evicts CPU-filled title textures LRU #640 with its budget off. With 16 windows and the patch on Memory/configurable uma windows #822 both 24 GiB views were below 2^40, yet Prestream still stopped at+0x23cf683.AI use