Repository navigation
D3D12.X: serialize tile unmapping with texture uploads - #799
wayward-tail wants to merge 1 commit into
Conversation
When a new placement supersedes an older placed texture, register() and retire_overlapping() previously called vram::unmap_superseded() without synchronizing with refresh(). If refresh() was concurrently executing upload_batch() on upload_queue for that texture, Pages.queue could issue UpdateTileMappings(NULL) while CopyTextureRegion was still in flight on upload_queue. Acquire REFRESH (strictly after dropping TEXTURES, matching refresh()'s lock order) before calling vram::unmap_superseded() so any active upload batch completes and waits on its fence before the superseded tiles are unmapped.
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
|
Code read of head
Minor: AI use: Claude Code, Claude Sonnet 5.5, read the diff and the code of #640 / #782 at the heads named above and drafted this comment; I checked each line reference. |
|
A gap next to this change, reported as the second point of #1897 and not covered by #594 or here. I checked it by reading
With this PR, the unmap sites take Written with Claude Code (Claude Opus 5.5). |
Superseded placed textures can be unmapped on the mapping queue while an internal texture upload is still using them. Serialize those unmaps with REFRESH, acquired after releasing TEXTURES, so active uploads finish first. Related: #594 orders against title queues; this change addresses the separate internal upload queue.
What is in it
Tested
c9633c64d11761564b92357e4c06f6cf4d39c686; Windows 11 Home build 26200, AMD Ryzen 7 8845HS, NVIDIA RTX 4060 Laptop GPU (driver 32.0.15.9282), Rust 1.100.0 MSVC, DXC 1.9.2609.5. Tests debug; title smoke release with symbols.XCL_ADAPTER=rtx 4060.cargo build --workspaceandcargo build --release -p xcl: succeeded.cargo test --workspace --no-fail-fast -- --test-threads=4: 701 passed, 1 failed, 41 ignored. The two wave64 skips below are included in Cargo's passed count.64b3f35: 700 passed, 1 failed, 41 ignored.gpu_clamp_and_omod_per_instructionfails atv_pk_add_i16 clampon unmodified main on this GPU.Regression run
Main:
This branch:
Not tested
XCL_SAMPLE_*game-data variables: unset, so those bodies were not exercised.AI use