Repository navigation
D3D12.X: wait for tiled-texture queues in late_release - #1314
ExoCalibra wants to merge 1 commit into
Conversation
late_release::drain_known waited on title queues, the sparse tile-mapping queue, and title-texture upload queues, but omitted the tiled-texture tile-mapping queues owned by vram::Pages. A released placed texture could reach its final COM Release while UpdateTileMappings was still in flight on vram::Pages.queue. Record vram::Pages queues in a separate VRAM_QUEUES mutex so late_release can snapshot them without taking PAGES, include them in drain_known via drain_queues, and add a GPU regression test verifying held batches wait until the vram queue passes.
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
|
A regression run under Wine on Linux, on a retail title. Tested
Regression run main (first run): this PR: The last Not tested
AI use
|
ivall#1379 Integrate 22 open upstream PRs targeting world rendering, shader correctness, DirectStorage terrain loads, and crash/memory stability: - ivall#1321 (ivall#1307): fall back to pc blocks when structured CFG HLSL grows oversized (eliminates the 148 MB HLSL / 1 GB/s commit explosion from b8b1f49 so XCL_PSO_PRELOAD=1 stays flat at ~5.4 GiB) - ivall#549, ivall#1312: DirectStorage late page-array queue hold (fixes 0x89240009 terrain read failures) and 0-byte memory-source requests - ivall#1365 (ivall#1361): GFX10.30 scratch SADDR 0x7F addresses the immediate offset alone instead of adding v0 - ivall#1368: translated compute PSOs use NodeMask 0 - ivall#1371 (ivall#105): deduplicate packed ISG1 vertex input struct fields - ivall#1375 (ivall#1360): ES s_setpc_b64 ends block before gs_start - ivall#1350, ivall#1351, ivall#1352, ivall#1353, ivall#1349: VS layer/viewport outputs, PS sample index/fixed-point position & SV_Coverage, depth+UAV initial states, console SetPredication - ivall#1305, ivall#1306, ivall#1314, ivall#1319, ivall#1322, ivall#1334, ivall#1339, ivall#1355, ivall#1357, ivall#1379: console_list UMA hold on Release, v_cmp_class_f32 bitwise abs/neg, late_release vram queue wait, root arg clamping, empty BVH / NaN rays, NULL IASetIndexBuffer clearing, MSAA MipLevels=1, VFS lazy-page commits, coherent VirtualFree validation, cpu_writes PAGE_GUARD & stale fence wakeups - README.md: document the integrated PRs, XCL_PSO_PRELOAD=1, and 16 GiB cap Verified on RX 9060 XT / GE-Proton11-14: release build clean, targeted unit tests pass (75 passed, 0 failed), and 80 s run with XCL_PSO_PRELOAD=1 and XCL_MEM_LIMIT=12G stays flat at 5340-5413 MB with 512+ pipelines preloaded (1385 frames, exit 0x0). Assisted-by: Antigravity (Google DeepMind)
…v#1305-xcl-dev#1379 Integrate 22 open upstream PRs targeting world rendering, shader correctness, DirectStorage terrain loads, and crash/memory stability: - xcl-dev#1321 (xcl-dev#1307): fall back to pc blocks when structured CFG HLSL grows oversized (eliminates the 148 MB HLSL / 1 GB/s commit explosion from b8b1f49 so XCL_PSO_PRELOAD=1 stays flat at ~5.4 GiB) - xcl-dev#549, xcl-dev#1312: DirectStorage late page-array queue hold (fixes 0x89240009 terrain read failures) and 0-byte memory-source requests - xcl-dev#1365 (xcl-dev#1361): GFX10.30 scratch SADDR 0x7F addresses the immediate offset alone instead of adding v0 - xcl-dev#1368: translated compute PSOs use NodeMask 0 - xcl-dev#1371 (xcl-dev#105): deduplicate packed ISG1 vertex input struct fields - xcl-dev#1375 (xcl-dev#1360): ES s_setpc_b64 ends block before gs_start - xcl-dev#1350, xcl-dev#1351, xcl-dev#1352, xcl-dev#1353, xcl-dev#1349: VS layer/viewport outputs, PS sample index/fixed-point position & SV_Coverage, depth+UAV initial states, console SetPredication - xcl-dev#1305, xcl-dev#1306, xcl-dev#1314, xcl-dev#1319, xcl-dev#1322, xcl-dev#1334, xcl-dev#1339, xcl-dev#1355, xcl-dev#1357, xcl-dev#1379: console_list UMA hold on Release, v_cmp_class_f32 bitwise abs/neg, late_release vram queue wait, root arg clamping, empty BVH / NaN rays, NULL IASetIndexBuffer clearing, MSAA MipLevels=1, VFS lazy-page commits, coherent VirtualFree validation, cpu_writes PAGE_GUARD & stale fence wakeups - README.md: document the integrated PRs, XCL_PSO_PRELOAD=1, and 16 GiB cap Verified on RX 9060 XT / GE-Proton11-14: release build clean, targeted unit tests pass (75 passed, 0 failed), and 80 s run with XCL_PSO_PRELOAD=1 and XCL_MEM_LIMIT=12G stays flat at 5340-5413 MB with 512+ pipelines preloaded (1385 frames, exit 0x0). Assisted-by: Antigravity (Google DeepMind)
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current |
|
I checked this against current On
A title queue is ordered after those mappings only at its next The and the Smaller points:
I also checked
If #1691 (which releases queues) lands, its AI use: Antigravity (Claude Opus 5.5) helped trace the paths and rebase the hunk. I checked each point myself against |
late_release::drain_knownwaited on title queues, the sparse tile-mapping queue, and title-texture upload queues before running a held resource's final COMRelease, but omitted the tiled-texture tile-mapping queues owned byvram::Pages. A released placed texture could therefore reach its finalReleasewhileUpdateTileMappingswas still in flight onvram::Pages.queue.What is in it
crates/xcl/src/hle/d3d12x/vram.rs: trackvram::Pagesqueues in a separateVRAM_QUEUESmutex and exposevram::queues()solate_releasecan snapshot them without takingPAGES.crates/xcl/src/hle/d3d12x/late_release.rs: includevram::queues()indrain_known(viadrain_queues), and add GPU regression testdrain_queues_waits_for_vram_tile_mapping_queue.Tested
rustc 1.100.0 (0ef1bc386 2026-11-09), debug (scripts/test.ps1) + release (cargo build --release -p xcl)..\scripts\test.ps1(cargo test --workspace -- --test-threads=4): 736 passed, 0 failed, 41 ignored.SKIPPEDGPU tests on this adapter:gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64).Regression run
Main (
67a3735):PR (
7aa9d68):Not tested
XCL_SAMPLE_*tests on local sample files (not set).AI use