D3D12.X: with bounded pipeline waits, dispatches are not put off to the submit #2581
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!2581
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2581"
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?
@brothernog on GitHub · 2026-11-26 00:02 UTC · original
brothernog:bounded-wait-no-putoff→main· +13 −0 · 2 files · 1 commits · openWith
XCL_PSO_WAIT_MSset, a dispatch whose pipeline is still being built is recorded at once instead of being put off to the submit (#2118). On an RTX 3050 withXCL_PSO_WAIT_MS=1,mainlost the device in 2 of 2 runs right after the retail title's world start; with this change the title presented to the end of every 240 s run (4 runs, 0 device removals). The runs that led here and what they show about the stop after the world start are in a comment on #2088: #2088What changes
list_x::deferreturnsfalsewhenpso_async::waits_bounded(), soDispatchand a dispatchingExecuteIndirectwith an unbuilt pipeline take the path they took before #2118: the bind waits at mostXCL_PSO_WAIT_MS, then the call is skipped as a stand-in's.XCL_PSO_WAIT_MS, so with a bound the put-off only moves the wait, and it costs a segment (a PC command list) per call. WithXCL_PSO_WAIT_MS=1the title's world start put off thousands of calls (the log's counter passed 8,192 in one run; up to 1,024 extra segments per list), the lists'ClosereturnedE_OUTOFMEMORY(thenE_FAIL), and the device was removed (0x887a0001, "invalid call").XCL_PSO_WAIT_MS=1.Closefailure.Files
hle/d3d12x/pso_async.rs:waits_bounded().hle/d3d12x/list_x.rs: the check at the top ofdefer.Tested
main08db802+ this PR (d5d694b):cargo test --release -p xcl --lib -- --test-threads=4: 1304 passed, 0 failed, 27 ignored.cargo clippy --release -p xcl --all-targets: 838 warnings on08db802and on this branch.XCL_NETWORK=0 XCL_PAGE_BUDGET_MB=4096; XCL and NVIDIA caches warm from earlier runs):XCL_PSO_WAIT_MSmaine1d84b7maine1d84b7Close→E_OUTOFMEMORY)e1d84b7(0a3d310, with a second change switched off byXCL_SKIPPED_COMPUTE_GUARD=0)e1d84b7(0a3d310), unset, after all the runs aboved5d694b)Closefailure)The default control was repeated last because driver blobs kept piling up over the runs: the title still stops with warm caches. Past that point, with
XCL_PSO_WAIT_MS=1, the title records 1,000–10,000 dispatches per 2 s but presents only about every 2 s; that slow phase is not explained here.Regression run
Default settings (
XCL_PSO_WAIT_MSunset, where this PR changes nothing), back to back,mainfirst, one run each; frame counts vary from run to run:main08db802:This PR (
d5d694b):Overlap
waits_bounded()follow the new default.mainnow.Not tested
XCL_PSO_WAIT_MSvalues other than 1; what the title draws with skipped dispatches; runs longer than 240 s.AI use
AI-assisted.
@DavidM1911 on GitHub · 2026-11-26 00:10 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.Thanks!
— Devin
@itsSio on GitHub · 2026-11-26 04:45 UTC · original
Independent dual-PC NVIDIA full-workspace test report on clean head
d5d694b04b3e26abdef656af21c03d30a5027d9b.Tested
32.0.16.1088), AMD Ryzen 7 9800X3D, 32 GB RAM, Windows 11 Pro build 26200,rustc 1.97.0(stable-x86_64-pc-windows-msvc), DXC1.9.2609.5, debug build (XCL_ADAPTER=NVIDIA)cargo build --workspace: exit 0cargo test --workspace --no-fail-fast -- --test-threads=4 --nocapture: 1429 passed, 0 failed, 47 ignored (all 14 existingpso_async/defer tests pass)SKIPPED: 26 (wave64-only GPU tests,#1426wave32 f16/cvt refusals,heap_window_out_of_memory_falls_back_to_the_switch_form,pso_measurement_compiles_an_exact_synthetic_record)32.0.16.1088), AMD Ryzen 5 5600X, 16 GB RAM, Windows 11 Pro build 26200,rustc 1.99.1(stable-x86_64-pc-windows-msvc), Windows SDK 10.0.26100 DXC1.8.2502.11, debug build (XCL_ADAPTER=NVIDIA)cargo build --workspace: exit 0cargo test --workspace --no-fail-fast -- --test-threads=4 --nocapture: 1429 passed, 0 failed, 47 ignored (all 14 existingpso_async/defer tests pass)SKIPPED: 29 (same 26 as Machine 1 plus 3 requiringd3d12SDKLayers.dll)Not tested
scripts/smoke.ps1runs (including bounded-wait behavior underXCL_PSO_WAIT_MS)--release)AI use
Ran via Samaritan:
github-bot referenced this pull request2026-11-26 12:40:17 +00:00
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.