D3D12.X: forget sparse upload waits when queues are replaced #2164
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2164
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2164"
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?
@broccolize on GitHub · 2026-11-25 06:42 UTC · original
broccolize:d3d12x/sparse-queue-wait-lifetime→main· +61 −7 · 3 files · 1 commits · draftA new D3D12 command queue can reuse a released queue’s address while a sparse upload is pending. XCL caches upload-fence waits by queue address, so the replacement queue can inherit the old entry, skip its own wait, and start GPU work before the upload completes.
What is in it
list_x.rsandreal.rsrecord wait invalidations on final release and command queue adoption.sparse.rsapplies them the next time it takes the sparse state lock, so the callbacks can return while a submit holds that lock.sparse.rsadds a regression test that models address reuse, checks that release can return while sparse state is locked, and verifies that another live queue retains its wait.Tested
Windows x64 debug on an NVIDIA GeForce GTX 1650. Host metadata reports driver
32.0.16.1714, Intel Core i5-10300H, and Windows 11 26H2 build26300.9974. The focused reruns used Rust1.100.0(MSVC) and DXC1.9.2609.5.The saved workspace build on
11221ffsucceeded. The workspace suite reported 1,153 passed, 2 failed, and 46 ignored. It printed 25SKIPPEDdiagnostics for unavailable wave64 (20), unsupported wave32 f16 cases (3), an unavailable driver-cache toggle (1), and unavailable heap windows (1). The original workspace invocation flags are unavailable.console_mesh_caches_hlsl_compute_pass_in_memory_and_on_diskreportedDXIL not compiled yetin the head workspace run and in a focused run on the original base6ea813a.cargo test --locked --offline --jobs 4 -p xcl --lib hle::d3d12x::bind::tests::execute_indirect_reads_the_arguments_written_before_it -- --exact --test-threads=1failed atCreateComputePipelineStatewith HRESULT0x80070057on bothmain(568e7db) and PR head (11221ff), built in separate Cargo target directories. The earlier head workspace run reached dispatch and reported incorrect group counts on 20 of 40 dispatches. That dispatch-count failure remains unresolved.cargo test --locked --offline --jobs 4 -p xcl --lib hle::d3d12x::sparse::tests -- --test-threads=4on11221ffreported 16 passed, 0 failed, and 1 ignored. The queue-reuse test passed and failed at the fence-wait assertion in the saved negative-control run.An independent sparse test run on an AMD Windows host reported 16 passed, 0 failed, 1 ignored, and 0 skipped on
11221ff. The release workspace build passed. AMD verificationRegression run
Independent seven-second retail startup comparison on an AMD Radeon RX 6800M. Report by luckyteagirl
Main (
6020a33)PR head (
11221ff)Not tested
Sustained retail gameplay, live D3D12 queue-address reuse during an in-flight upload, Intel GPUs, macOS, and Linux. Both retail startup runs reached one frame and logged zero draws or dispatches.
AI use
OpenAI Codex (GPT-6) assisted with the patch and regression test, verified the saved logs and ran the focused checks
@broccolize on GitHub · 2026-11-25 07:07 UTC · original
Could someone with a retail title that already runs in XCL help with the smoke test for this draft?
Please run the same title on the same PC for 60 seconds on both
mainand the exact PR head11221ff. From each clean checkout, run:Please reply here with both
xcl-smokeblocks and label which one is frommainand which is from the PR head. Thanks!@DavidM1911 on GitHub · 2026-11-25 07:20 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
@luckyteagirl on GitHub · 2026-11-25 07:33 UTC · original
Independent Windows AMD check of exact PR head
11221ff186e68b6375bd630c21d86ca18b57b499. The author requested a 60-second title pair; this host could complete a seven-second startup pair only, so the blocks below are labeled with their actual duration.Tested
30.0.13002.13003; Rust 1.99.0 MSVC; DXC/DXIL 1.9.2609.5. Debug tests, release smoke.cargo test --locked -p xcl --lib -j 2 hle::d3d12x::sparse::tests -- --test-threads=1 --show-output: 16 passed, 0 failed, 1 ignored, 0 SKIPPED, includinga_reused_queue_address_repeats_its_sparse_upload_waitandthe_queue_is_answered_while_the_state_is_locked. I also ran the built test executable directly with the same filter and counts under a temporary Windows high-performance per-app preference, then restored the previous setting. This matters because some tests callD3D12CreateDevice(None), which otherwise selects this laptop's integrated AMD GPU. A separate adapter-LUID probe verified the preference selects the RX 6800M (00000000:00014d72); the tests do not print their device LUID.cargo build --locked --workspace --release -j 2: passed.Regression run
Guarded seven-second launches of the same owned title, with isolated data and DXIL caches. The clean
maincommit has the same runtime source as this PR's568e7dbbase. Neither guard fired.These startup runs reached one frame and logged zero draws or dispatches. They do not show queue-address reuse during an in-flight sparse upload or sustained world loading. I did not complete the requested 60-second run or a full workspace suite on this head. The focused regression models the queue-reuse behavior.
AI-assisted checkout, testing, adapter-selection verification, smoke monitoring, and report drafting with OpenAI Codex (GPT-6). No game data was uploaded.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.