Repository navigation
D3D12.X: keep inline split pipeline pieces on the foreground path - #2424
razormontana wants to merge 1 commit into
Conversation
A lazy compute bind builds its pipeline inline when no worker has taken it. Split-pipeline helpers inherit the pending build from thread-local state, which the inline path left empty. Those helpers could wait for background commit headroom while the title was blocked on their results. Mark the bind as waiting before running the build. Reuse the pending build context so split helpers use the existing foreground limits. Assisted-by: Codex (GPT-6.2)
|
Tested commit Environment
Results
|
…#2404, xcl-dev#2405 Integrates VRAM top-mip pressure shedding (xcl-dev#2385), DXC wanted-compile prioritization & worker headroom (xcl-dev#2423), inline split pipeline foreground path (xcl-dev#2424), ExecuteIndirect split program dispatch (xcl-dev#2404), and hosted view heap exhaustion null-pair fallback (xcl-dev#2405). Assisted-by: Antigravity (Gemini 4 Neon)
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
The lowered program is missing an expected group barrier (or emits one where none is expected). Needs a fix before merge. — Devin |
…#2404, xcl-dev#2405 Integrates VRAM top-mip pressure shedding (xcl-dev#2385), DXC wanted-compile prioritization & worker headroom (xcl-dev#2423), inline split pipeline foreground path (xcl-dev#2424), ExecuteIndirect split program dispatch (xcl-dev#2404), and hosted view heap exhaustion null-pair fallback (xcl-dev#2405). Assisted-by: Antigravity (Gemini 4 Neon)
|
Independent Windows check of #2424 head Exact head: Current-main integration: On clean Not tested: a retail title, the cold split-pipeline wait path, AMD/Intel, or a paired smoke run on this machine. These tests verify scheduler state propagation and integration, not a measured world-load speedup. AI-assisted: Codex (GPT-6.2 Sol) read the diff, ran the tests, compared current main and drafted this report. |
Part of #1269. Part of #2088 (workstream 4).
A title can build a lazy split compute pipeline inline at its first bind. Its helper jobs inherit the pending pipeline from the build thread. The inline path left that context empty, so a cold piece could wait for background commit headroom while the title was blocked on the build.
What is in it
an_inline_bind_makes_split_pipeline_pieces_wanted. With only the test added tomain, both pieces saw[0, 0]. On the PR they see[1, 1].Tested
cargo test --offline --locked -p xcl --lib hle::d3d12x::pso_async -- --test-threads=1 --show-output(debug): 12 passed, 0 failed, 0 ignored, zero GPU skip markers.cargo build --release --offline --locked --workspaceandcargo test --release --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-output: 1,290 passed, 1 failed, 46 ignored. The pass count includes 26 runtimeSKIPPEDmarkers (21 native wave64, 3 unsupported per-lane forms, 1 heap-window capability, 1 reserved cube with mip levels).a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier, found 3 barriers with 1 expected. The focused debug test gave the same result on cleanmain68a284aand on the PR. Tests: the bridged mask write checks for no barrier past the first branch #2379 covers that assertion.Regression run
Both release builds ran the same retail title for 60 seconds in the Series S profile, with the same scripted inputs and networking disabled.
Main
PR head
Not tested
AI use