Repository navigation
D3D12.X: keep inline split pipeline pieces on the foreground path - #2424
razormontana wants to merge 1 commit into
Conversation
|
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. |
Prime1997
left a comment
There was a problem hiding this comment.
Good within the targeted test scope; retain for integration. Propagates wanted status to split pipeline pieces when the bind itself builds the pipeline.
Reviewed PR head 89bbbb4995b4dc33cb5ff96a680885d7ff208198. Tested an isolated, uncommitted merge-tree integration with latest main b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7, tree f267768bff4c15d608c2d9b14c5781c8fa8081d9; this is not a clean PR-head run. Integration source overlay SHA-256: 90208c5a585976d0bb542122972a8d875eae7f308bf1b46e683da4ae39d7771a.
Measured: 1 passed, 0 failed, 0 ignored, 0 skipped. Exact selected filters, each run in a fresh process:
hle::d3d12x::pso_async::used_tests::an_inline_bind_makes_split_pipeline_pieces_wanted
Build: cargo test --locked --offline -p xcl --lib --no-run --message-format=json --target-dir <isolated-target>. Run each: <test-exe> <exact-filter> --exact --test-threads=1 --nocapture. Private target/executable paths are placeholders. Windows 11 Pro 26200, i5-10400, 32 GiB, Rust 1.100.0 MSVC debug; private temporary/cache paths, two low-priority build jobs, 90-second per-test bound.
Scope: One finite fake-job CPU fixture covers wanted-status propagation. It does not invoke DXC or a driver, or measure foreground latency. No full suite, retail run, sustained memory pressure or performance benefit is established. Passing these fixtures is not merge certification.
AI use: Codex (GPT-6) inspected the changes and fixtures, ran the checks and verified raw receipts. Optional temporary Discord for coordinating contributor work, testing and comparing results.
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)
89bbbb4 to
6ada023
Compare
|
Independent Windows/NVIDIA recheck of #2424 head
Not tested: cold NVIDIA driver-gate timing, split-chain output on a first bind, a retail title, paired smoke, AMD or Intel. The passing tests establish scheduler state propagation and existing split-compute behavior, not a measured world-load improvement or merge readiness. AI use: Codex (GPT-6.2 Sol) reviewed the exact diff, ran and checked these tests, and drafted this report. |
|
Correction to my earlier #2424 report on the unchanged head I then reran the full suite with
Still not tested: cold driver-gate timing, first-bind split-chain output, retail or paired smoke, AMD/Intel. AI use: Codex (GPT-6.2 Sol) traced the cache path, ran and checked the tests, and drafted this correction. |
|
Independent desktop NVIDIA verification of PR #2424 at head Environment
Targeted release tests & build (
|
| Command | Result |
|---|---|
cargo test --release -p xcl --lib an_inline_bind_makes_split_pipeline_pieces_wanted -- --nocapture |
1 passed; 0 failed; 0 ignored; 1342 filtered out (0.00s) |
cargo test --release -p xcl --lib hle::d3d12x::pso_async:: (3 consecutive runs) |
15 passed; 0 failed; 0 ignored; 1328 filtered out × 3 (0.76s, 0.61s, 1.01s) |
cargo test --release -p xcl --lib hle::d3d12x::real:: |
63 passed; 0 failed; 0 ignored; 1280 filtered out (0.38s) |
cargo test --release -p xcl --test gpu_compute_e2e split -- --test-threads=1 --nocapture |
2 passed; 0 failed; 0 ignored; 5 filtered out (2.40s: offline_split_compute_pipeline_is_reused_by_a_second_process, split_compute_prefers_the_offline_whole_pipeline) |
cargo build --release -p xcl --bin xcl |
Clean build (1m 14s lib build + 0.07s bin, exit 0) |
Paired quiet 60 s retail smoke (title: 29640639)
Exact parent & merge-base (e120925e3abc9956a8b9bae631969d32e8ccd43c, cached baseline on the same machine):
xcl-smoke v1
commit: e120925e3abc9956a8b9bae631969d32e8ccd43c
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1602 (PresentX 1602)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 13979 MB
PR #2424 (6ada0232306cf02b85fa4050e5d3345363a2f9e1):
xcl-smoke v1
commit: 6ada0232306cf02b85fa4050e5d3345363a2f9e1
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1605 (PresentX 1605)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14010 MB
Runtime log observations (xcl.log)
9221log lines,0[ERROR]/ device-removal / panic lines.- Split compute telemetry during warm-cache smoke:
compute split: 0 programs split, 0 pieces built, 0 chained dispatches issued in 0 slabs; scratch 0 MiB. - Final draw/memory telemetry in log:
19543 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample14010 MB committed by the process; video memory 6116 MB local, 4683 MB non-local.
Limits of coverage
- The 60 s retail smoke ran with the existing warm shader cache and recorded
0 programs split, 0 pieces built, so it confirms clean runtime stability and zero regression ontitle: 29640639rather than measuring a cold-cache world-load timing change under split-pipeline contention. - Inline foreground
wantedpropagation to split-pipeline helpers and split-compute E2E reuse were verified viaan_inline_bind_makes_split_pipeline_pieces_wanted, 3×pso_async::(15/0/0),real::(63/0/0), and the 2gpu_compute_e2esplit tests (2/0/0).
AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).
|
NVIDIA and AMD full-suite run, to go with the reports above by Decodere, thehollowedone, since none of them covers AMD. Tested exact head Tested
Not tested
AI use
|
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
hle::d3d12x::pso_asynctests passed, including inline helper demand. The formerly failing DXIL barrier test passed with the merged Tests: check divergent block barriers in a_bridged_mask_write #2420 fix in the base.6ada0232,cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-outputreported 1,443 passed, 0 failed and 47 ignored. The pass count includes 26 explicit GPU skip notices.cargo build --offline --locked --release -p xclsucceeded.Regression run
Both release builds ran the same retail title offline for 60 seconds on the RTX 3070. Both used the Series S profile, direct DXIL and copies of the same starting cache. This pair uses
e120925, the preceding main commit. At8b957be, smoke reached its startup deadline during #2555 shader preparation. The PR merges cleanly into8b957be; the combined retail run remains unverified. The initial pair showed 703 frames on main and 391 on the PR. For this repeat, both started from copies of the cache left by the first main run, after builds completed.Main
PR head
Not tested
The scheduler test covers demand propagation. The retail smoke checks startup and presents. Split program execution during world loading and cold NVIDIA driver timing remain unverified.
AI use
Codex GPT-6.2 wrote and reviewed the code and tests, rebased the branch, ran the checks, and updated this description.