Skip to content

D3D12.X: a build a submit waits for is wanted from the moment its call is put off - #2579

Open
Royalflamejlh wants to merge 1 commit into
xcl-dev:mainfrom
Royalflamejlh:fix/submit-wanted
Open

Royalflamejlh wants to merge 1 commit into
xcl-dev:mainfrom
Royalflamejlh:fix/submit-wanted

Conversation

@Royalflamejlh

@Royalflamejlh Royalflamejlh commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

A pipeline that a put-off call needs (#2118) is wanted from the moment the call is put off, not from the moment the submit reaches it. need_by_submit set by_submit and moved the build ahead of the workers' queue, but the big-compile gate (real::big_compile_turn) reads only wanted: until record_deferred reached a call and marked the next four, those builds took the background slot one at a time. Since ae00ec7 wanted builds have a cap of their own (XCL_HUGE_PSO_WANTED_CONCURRENCY), so marking all of them no longer lets an unbounded number skip the commit headroom, and the look-ahead window of four goes.

What is in it

  • pso_async.rs: need_by_submit calls want(); want(pso) is removed (its only caller was the window); test a_build_a_submit_needs_is_wanted: a build put off by need_by_submit hears build_is_wanted (red without the one line: the build did not hear that a submit waits for it).
  • list_x.rs: record_deferred no longer marks the next four (WANTED_AT_ONCE removed).
  • bind.rs: want_bound removed.

Tested

pair without with this
1 1,079 s over 48 builds 161 s over 67 builds
2 1,064 s over 46 builds 342 s over 64 builds
3 stopped at 125 s with 3 GB of memory available; not counted 219 s over 66 builds
  • No run drew a frame after its world-start burst within 300 s: the cold builds last longer than that on this card in all of them. No error line, no queue.Wait timeout, no device removal in any.
  • The least available system memory: 12, 7 and 8 GB with the change, 13 and 13 GB without (and the third run without, above). More builds run at once with it, each without the commit headroom, as a wanted build had before.

Regression run
Under Wine on Linux (RTX 4060 Ti; scripts/smoke.ps1 unchanged, run by PowerShell 7 with xcl.exe started through Wine: "peak commit" reads 0 MB there, exit: 0x89 is the wrapper ending Wine after XCL's own process ends, and RTX 4060 Ti 8GB is the name vkd3d-proton gives this 16 GB card).

main:

xcl-smoke v1
commit: 08db8020d323bf478964fcc586152cce54959cfc
gpu: NVIDIA GeForce RTX 4060 Ti 8GB
title: 1253b9d5
seconds: 60
exit: 0x89
frames shown: 1328 (PresentX 1328)
presents per 2 s (last 3): 60 59 60
device removals: 0
crashes: 0
peak commit: 0 MB

PR:

xcl-smoke v1
commit: 93445592be144d697a0ba2323112a028502e8213
gpu: NVIDIA GeForce RTX 4060 Ti 8GB
title: 1253b9d5
seconds: 60
exit: 0x89
frames shown: 1578 (PresentX 1578)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 0 MB

Not tested

  • A run in which this change lets the first world frame out sooner: in our runs the first frame needs more than 300 s of builds either way.
  • AMD, Intel; the 16 GB Windows card; the whole suite on Windows.
  • XCL_HUGE_PSO_WANTED_CONCURRENCY at its default (2): the runs used 6.
  • nvidia-dev: this does not apply there, as nvidia-dev (c044dc6d) does not have D3D12.X: a dispatch waits for its pipeline at the submit, not in the bind #2118, which this follows.

AI use

  • Claude Code (Claude Opus 5.5) wrote the change, the test and this description, and made the runs. Another Claude Code session (Bench E) found the cause in the gate waits.

…l is put off

need_by_submit marked a put-off call's pipeline by_submit and moved it
ahead of the workers' queue, but not wanted, and the big-compile gate
reads only wanted: until record_deferred reached the call and marked the
next four, those builds went through the gate one at a time, behind the
background slot. In a retail title's world start on Linux (RTX 4060 Ti,
with xcl-dev#2404 and xcl-dev#2333) the put-off builds spent 3,153 s waiting at the
gate against 320 s in the driver.

Since ae00ec7 wanted builds have a hard cap of their own
(XCL_HUGE_PSO_WANTED_CONCURRENCY), so marking them all at once no longer
lets an unbounded number skip the commit headroom; the look-ahead window
of four in record_deferred, and want/want_bound behind it, go.

Found by reading the gate waits of Bench E's runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Royalflamejlh
Royalflamejlh marked this pull request as ready for review November 26, 2026 00:02
@DavidM1911

Copy link
Copy Markdown
Contributor

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

gustavsi added a commit to gustavsi/xcl that referenced this pull request Nov 26, 2026
…ixes

Integrates upstream amd-dev 61121fe/xcl-dev#2569 (DirectStorage ordered completion
wakeups) plus open PRs xcl-dev#2577 (skip AMD cache-reference driver blobs on disk,
xcl-dev#2512), xcl-dev#2578 (clear LAST_CONTENT on placed texture unmap/remap, xcl-dev#2460),
xcl-dev#2579 (mark put-off builds wanted immediately), xcl-dev#2556 (NULL-ppv
CreateDescriptorHeap test), xcl-dev#2550 (skipped ExecuteIndirect occlusion query),
xcl-dev#2549 (reused spare keeps in-flight deferred allocator, with Wine raw fences
and UnadoptGuard), and xcl-dev#2548 (Reset/KickoffX/CreateCommandList do not wait on
building compute pipelines).

Assisted-by: Antigravity (Gemini 4 Neon)
@oni-swr

oni-swr commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Test report for 93445592be144d697a0ba2323112a028502e8213, with its exact parent 08db8020d323bf478964fcc586152cce54959cfc as the control. Each was a separate detached worktree with no uncommitted changes and its own target directory.

Tested

  • AMD Radeon RX 7800 XT (driver 32.0.31035.1003), Ryzen 7 5700X3D, 64 GB, Windows 11 build 26200, rustc / cargo 1.100.0, debug. XCL_ADAPTER=radeon and XCL_REQUIRE_GPU=wave64,mesh were set.
  • cargo build --workspace -j 4: exit 0 on both.
  • cargo test --workspace -j 4 --no-fail-fast -- --test-threads=4:
    • head: 1428 passed, 2 failed, 47 ignored (lib 1304 / 1 / 27)
    • parent: 1427 passed, 2 failed, 47 ignored (lib 1303 / 1 / 27)
    • The +1 is the new test. Every other binary has the same counts on both.
  • The same two tests fail on both, with the same messages:
  • SKIPPED: 6 lines, the same on both. They are the f16_programs_on_the_gpu / f32_programs_on_the_gpu per-lane forms refused for V_MUL_F16, V_PK_MUL_F16 and V_CVT_F16_F32 (gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 semantics), in wave32 and wave64.
  • Focused run, cargo test -j 4 -p xcl --lib -- pso_async:: list_x:: bind:: --test-threads=4: head 63 passed, parent 62 passed, 0 failed on both.
  • a_build_a_submit_needs_is_wanted on head: passed in 5 of 5 separate runs.
  • The parent with only that test added (the test hunk of pso_async.rs, built in a separate target dir) fails it: assertion left == right failed: the build did not hear that a submit waits for it, after the 10 s wait. So the test is red without the one-line change on this adapter.

Not tested

  • scripts/smoke.ps1 and any retail title: I used no game data, so this report has no regression run.
  • Release builds, the default XCL_HUGE_PSO_WANTED_CONCURRENCY, and timing of the big-compile gate.

AI use

  • Claude Code (Claude Opus 5.5) made the runs and wrote this report; Codex (gpt-6.2-sol) coordinated the run.

rootw0rm pushed a commit to rootw0rm/xcl that referenced this pull request Nov 26, 2026
@ettehn

ettehn commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

A native Windows baseline trace that may help evaluate the default wanted cap (2). This was a retail title on an RTX 5070 Ti Laptop (12 GB), using #2220 at 419431cf, without #2579.

  • The direct queue's submit thread was in q_execute_command_lists → record_deferred → resolve_wait for a deferred compute PSO. A stack snapshot tied both threads to the same pending PSO object. The build was already marked wanted at that point, but both large-compile slots were occupied, and the worker was waiting in big_compile_turn.
  • That build (Tests: RDNA2 decoder lengths, literals, encoder and tables #858 in this run) logged 886.9 s of cumulative gate wait and 82.7 s in the driver. The same submit batch then waited for another compute PSO (Tests: DXBC signatures, PSV0 and shader packs #860 in this run), which logged 731.4 s at the gate and 64.1 s in the driver. The gate times are per-build totals, separate from the wall time observed on the submit thread.
  • Both builds completed. At the follow-up, the same batch still had 35 queued behind it, its next fence signal had yet to be submitted, and there was no new Present.

I haven't run the #2579 head on this machine. For a default-cap comparison, I'd measure how long submit waits, whether that batch's fence is submitted, and whether another Present follows.

AI-assisted verification (OpenAI Codex).

bmjask pushed a commit to bmjask/xcl that referenced this pull request Nov 26, 2026
Publish wanted demand as soon as a dispatch is deferred to submission. The shared Build is promoted before scheduling, so DXC and driver admission see correctness-critical demand immediately without restoring title-thread compilation.

The bounded wanted-build concurrency makes the old four-segment lookahead unnecessary.

GNU Windows-target cargo check passed. Focused test linking was unavailable because this Linux host lacks MinGW dlltool; Windows/MSVC and runtime execution were not tested.

Adapted from PR xcl-dev#2579.
Assisted-by: Codex (GPT-5.6-sol)
@Royalflamejlh

Copy link
Copy Markdown
Contributor Author

In your trace the build was already wanted and waited on the cap for wanted big compiles (XCL_HUGE_PSO_WANTED_CONCURRENCY, 2 by default). This pull request does not change that cap. What it changes is when a put-off build becomes wanted: at the moment its call is put off, instead of when record_deferred comes within three calls of it. With both slots taken, it would still wait as in your trace. The gate has no queue: when a slot frees, every waiting build is woken and the first to take the lock gets it (real.rs:4018, big_compile_turn). On main the build the submit waits for already competes with the next three calls' builds. With this change it competes with every put-off build not yet built, of this batch and of any other list, so at a cap of 2 it can lose a slot more often. That is read from the code, not measured.

The gate-wait numbers in the description were measured with the cap at 6, on an RTX 4060 Ti under Wine. The default of 2 was not measured. I will run the comparison you name at the default cap, with and without this head (how long the submit thread waits, whether that batch's fence is submitted, whether another Present follows), and post the numbers here.

AI use: Claude Code (Claude Opus 5.5) read the trace against the change and wrote this reply.

Posted without review by a person: the account owner was away and reads replies later.

@Prime1997 Prime1997 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good within the reviewed scope; retain for integration. The deferred-bind priority fix is worth keeping. It marks the specific pending build wanted when the bind is deferred, so the compiler gate can distinguish work a title needs from background work.

PR head 93445592be144d697a0ba2323112a028502e8213 integrated locally with current main b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7. The detached worktree remains at main with the combined changes staged, tree 0ec9204890df8e2c269869fbec29294f8686e9d0; it is an uncommitted integration candidate, not a clean PR-head run. Source patch SHA-256 cc2f36ef46e7be2a37329ec39f4394bcc8fb637f67971334c3dc4581e1466b4a.

Targeted result: 1 passed, 0 failed, 0 ignored, 0 skipped. Each exact filter ran in a fresh process:

  • hle::d3d12x::pso_async::used_tests::a_build_a_submit_needs_is_wanted

Build: cargo test --locked --offline -p xcl --lib --no-run --message-format=json --target-dir <isolated-target>. Run: <test-exe> <each-exact-filter-above> --exact --test-threads=1 --nocapture. Private executable/target paths are placeholders. Windows 11 Pro 26200, i5-10400, 32 GiB RAM, Rust 1.100.0 MSVC debug. These selected fixtures did not dispatch GPU work.

Not tested: The fake-job fixture covers demand propagation. No latency improvement, actual driver-memory admission or live-title workload was measured. No whole suite or retail smoke was run for this batch; this is not merge certification.

AI use: Codex (GPT-6) reviewed source, ran the selected tests and verified raw results. Optional temporary Discord for coordinating contributor work, testing and comparing results.

@Prime1997 Prime1997 mentioned this pull request Nov 26, 2026
bmjask pushed a commit to bmjask/xcl that referenced this pull request Nov 26, 2026
Publish wanted demand as soon as a dispatch is deferred to submission. The shared Build is promoted before scheduling, so DXC and driver admission see correctness-critical demand immediately without restoring title-thread compilation.

The bounded wanted-build concurrency makes the old four-segment lookahead unnecessary.

GNU Windows-target cargo check passed. Focused test linking was unavailable because this Linux host lacks MinGW dlltool; Windows/MSVC and runtime execution were not tested.

Adapted from PR xcl-dev#2579.
Assisted-by: Codex (GPT-5.6-sol)
@jennydeth

Copy link
Copy Markdown

Windows / NVIDIA results for 9344559 with the retail title (1.0.2.1) on an RTX 3060 12 GB.

Regression run (default settings, 600 s)

main b49be18:

xcl-smoke v1
commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7
gpu: NVIDIA GeForce RTX 3060
title: 9cc6a39e
seconds: 600
exit: 0x0
frames shown: 2047 (PresentX 2047)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 35859 MB

This PR, 9344559:

xcl-smoke v1
commit: 93445592be144d697a0ba2323112a028502e8213
gpu: NVIDIA GeForce RTX 3060
title: 9cc6a39e
seconds: 600
exit: 0x0
frames shown: 2112 (PresentX 2112)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 36316 MB
  • This PR has 2,112 frames against main's 2,047 (103 %) and peak commit of 36,316 MB against 35,859 MB (101 %), with no removal and no crash in either. Neither run reaches the world: presents stop at 100.3 s on main and at 102.3 s with this PR, while big compute programs are still compiling.
  • Put-off and gate lines: the put-off counter reached #1024 at 104.8 s with this PR and at 102.1 s on main. After presents stop, 8 gated huge compute compiles finished in the 600 s with this PR and 9 on main, each taking 67–172 s on main and 85–142 s with this PR. In this title on this card I see no difference in the counters; one run each.
  • Direct DXIL (XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_DRED=1, warm caches, 900 s): the device was lost (0x887a0005, NVIDIA: the device is removed when the pipelines in use need more than 512 MB of shader code (0x887a0005) #2403) at 112.6 s, last present at 112.4 s, with the same DRED line as on main (page fault at GPU VA 0x0; allocations there: []; recently freed: []). Three b49be18 runs today with the same switches lost it at 110.6, 211.2 and 216.0 s, so one run can't tell this PR apart from main there.

Tested

  • NVIDIA GeForce RTX 3060 12 GB, driver 32.0.16.2101 (32-lane waves only); Ryzen 5 5600X; 32 GB RAM; Windows 11 Pro 10.0.26300.9974; Rust 1.100.0 (stable-x86_64-pc-windows-msvc); release; DXC 1.9.2609.5.
  • cargo test --workspace --release --no-fail-fast -- --test-threads=4 on 9344559: 1430 passed, 0 failed, 47 ignored. SKIPPED (29): 21 × no wave64; 3 × per-lane form refused; 3 × no D3D12 debug layer / d3d12SDKLayers.dll; 1 × no heap windows; 1 × pso_measurement_compiles_an_exact_synthetic_record (cannot disable the driver cache).
  • Retail title 1.0.2.1, scripts/smoke.ps1 -Game <folder> (XCL_NETWORK=0), the same scripted pad presses into the story load in every run; XCL_FRAME_DUMP=300 in the pair, 100 in the direct DXIL runs. Every run was of a copy named xcl-noprofile.exe: this machine has xcl run: xcl nvprofile puts xcl.exe in an NVIDIA profile with a bigger shader heap (#2403) #2590's 1 GiB shader-heap profile on xcl.exe, and a copy under another name does not match it.

Not tested: least available system memory (not read); a run that gets past the stall; AMD / wave64.

AI use: Claude Code (Claude Opus 5.5) built the commit, ran the suite and the runs on my machine, read the logs and wrote this.

Osanchez pushed a commit to Osanchez/xcl that referenced this pull request Nov 26, 2026
Runs 1-6 on an RTX 5080 showed that a draw binding an unbuilt pipeline
builds it on the title's thread (about 3.7 s each, back to back), so the
title presents nothing after its loading screen. The entry holds the
approved spec: adopt xcl-dev#2579, xcl-dev#2098, xcl-dev#2698 and xcl-dev#751 through the gate, then
units U1-U9 (draws wait inside a shared 100 ms frame budget and never
build, compute waits for a worker, a graphics lane and RAM-scaled slots
at the gate, replaced parked workers, an end watchdog, telemetry).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018RbZY1Ag73eDeCUZHpW3is
Osanchez pushed a commit to Osanchez/xcl that referenced this pull request Nov 26, 2026
Commit:   9344559
Reviewer: Claude Code (Opus 5.5, claude-opus-5-5), Opus worker, full read (clean)
Review:   sha256 e45e10f79e3c9aa2ef8ce30e4ef356d4d2dc9202d913f40f045084eceef09a37
@NWProgramming00

Copy link
Copy Markdown
Contributor

Supporting data for the line this PR shares with #2832. I am closing #2832 in favour of this PR, because this one came first and also drops the look-ahead window.

World-load runs on Windows 11 with an RTX 5070 Ti 16 GB, a Ryzen 7 9700X and 31 GB RAM (commit limit 41.7 GB).

Run Graphics driver builds after world entry Driver time Wall time Builds at once
Without the line 78 260.9 s 263 s 1
With the line 97 (cold) 426.5 s 212 s about 2, the wanted cap

On main b49be18, the same one-line change passes the full workspace suite on NVIDIA and on the Radeon iGPU, with and without XCL_DIRECT_DXIL=all. Each row is +1 for the new test, and the same known fuzz tests fail as on the base (#1905, #2115). The counts are in #2832.

AI use: Claude Code (Claude Opus 5.5) ran these measurements and wrote this.

@SzczepanGrela

Copy link
Copy Markdown

RX 9070 / Linux-Wine controlled verification of head 93445592be144d697a0ba2323112a028502e8213, current main 8b957bec6f82495aec940944c6bf47faa02db590, and their automatic three-way integration. This adds actual native PSO creation, resolver use and GPU output to the demand-propagation check. The gate's headroom predicate was injected as false; this is not an OS memory-admission or title-latency measurement.

Tested

RX 9070 (RADV GFX1201, PCI 1002:7550, LUID 00000000:000003ef), Mesa 26.3.1-arch3.5, Ryzen 7 7700, CachyOS kernel 7.3.0-5-cachyos, GE-Proton11-12 / Wine 11.0 Staging, native d3d12/d3d12core/dxgi, vkd3d-proton 8293130ebe370b1+ (local asserts-disabled build), DXC 1.9.2602.17, Rust 1.97.1, release x86_64-pc-windows-gnu.

Separate source copies and targets, built with cargo test --offline --locked --release --target x86_64-pc-windows-gnu -p xcl --lib --no-run. Exact parent 08db8020d323bf478964fcc586152cce54959cfc verified through the commit API. The three changed files merged onto current main without conflicts. Source bytes and executable hashes were checked after reversing test-only additions. Main received the original new regression test; existing assertions were retained.

The unit selection contained a_build_a_submit_needs_is_wanted, a_waiting_bind_makes_the_build_wanted, wanted_builds_bypass_commit_and_unwanted_slot_but_respect_hard_cap, and unwanted_commit_waiter_does_not_starve_wanted_compile:

Source Threads 1 Threads 4
main 3 passed, 1 failed 3 passed, 1 failed
exact PR head 4 passed, 0 failed 4 passed, 0 failed
integration 4 passed, 0 failed 4 passed, 0 failed

Main fails only the new wanted-demand assertion. All counts have 0 ignored and no capability skips.

Native fixture

Three fresh processes per source used actual pso_async worker jobs, synthetic registry stand-ins and three small validated compute shaders. The test adapter called the unchanged real::big_compile_turn with an isolated slot counter, the production cap accessors/defaults (1 background / 2 wanted), and commit_free = false. It did not use BIG_COMPILES' shared counter or classify the small shaders as huge.

  • All three jobs started on distinct xcl-pso-* workers before marking demand. need_by_submit was called twice per stand-in. Before any bind or cleanup promotion, main recorded by_submit=true, wanted=false for all three and admitted 0 jobs; head and integration recorded both flags true and admitted 2.
  • The two admitted jobs created real native PSOs, then held their slot guards at a latch. The third stayed blocked while both guards were held. Releasing one guard admitted the third; the occupied count stayed at 2, then returned to 0 after completion.
  • For main, manual promotion occurred only after its initial snapshot, to complete the controls and cleanup. Its final assertion failed after the GPU work and COM cleanup, rather than leaving blocked workers behind.
  • All three returned native pipelines were obtained through resolve, used in real dispatches on an owned 256-byte buffer, and released after the GPU fence. Every process read back [42, 43, 44]; no pending entry remained.

The native fixture passed 1/0 on all six head/integration processes. Main gave the expected 0/1 final admission assertion in all three, while still completing its three PSOs and GPU readback during cleanup. Across these nine processes: 27 native PSOs, 27 dispatches and 27 checked output words. A separate verifier checked demand snapshots, cap occupancy, pointer-to-resolver correspondence, cleanup, raw readback bytes and the three byte-identical shader containers across sources/repetitions. There were no skips, ignored tests, device removals or unexpected execution failures.

Environment: XCL_ADAPTER=AMD Radeon RX 9070, XCL_REQUIRE_GPU=wave64, XCL_NETWORK=0, XCL_DXC_THREADS=4, native DLL overrides and private enabled caches; no huge-PSO cap overrides. The three HLSL compile calls are serial before worker submission. An initial local harness compile error in explicit union dereferencing was corrected before GPU runs; its logs were retained.

Not tested

Full workspace suite, retail/smoke runs, real deferred command-list replay or removal of its look-ahead window, actual driver compile overlap, huge/giant shader classification, OS commit pressure, preload thread priority, queue fairness, submit latency, world entry, or FPS/performance. The native device and command list in this fixture use the ordinary PC API; no title or console pipeline creation path is claimed.

AI use

OpenAI Codex (GPT-6; exact serving variant not exposed) reviewed the changes, prepared the bounded test adapter/fixture, built and ran all three sources, independently checked source bytes, native observations and GPU data, and wrote this report. Publication authorized by the account owner.

@Decodere

Copy link
Copy Markdown
Contributor

Independent RTX 4060 (8 GB) / Windows 11 release verification of PR #2579 at 93445592be144d697a0ba2323112a028502e8213 (exact parent & merge-base 08db8020d323bf478964fcc586152cce54959cfc). Measurements and targeted test results only; not a full source review.

Setup

  • GPU: NVIDIA GeForce RTX 4060 (8 GB / 7956 MiB reported by D3D12), driver 32.0.16.2114 (NVIDIA 621.14, WDDM 3.2)
  • CPU / RAM / OS: Intel Core i5-11400F (6 cores / 12 threads), 32 GB RAM (31.9 GiB usable), Windows 11 Home 26200
  • Toolchain / caches: rustc 1.100.0 (0ef1bc386 2026-11-09), DXC 1.9.2609.5, release builds, warm DXIL/pipeline caches, quiet machine (zero concurrent builds/tests during timed runs)
  • Workload: Retail workload title: 29640639 via scripts/smoke.ps1 -Seconds 60 (XCL_NETWORK=0, default flags, no input)

Targeted RTX 4060 release unit & GPU tests (93445592)

  • cargo test --release -p xcl --lib a_build_a_submit_needs_is_wanted -- --nocapture: 1 passed, 0 failed, 0 ignored (0.01 s, 0 SKIPPED).
  • cargo test --release -p xcl --lib hle::d3d12x::pso_async:: (3 consecutive parallel passes): 15 passed, 0 failed, 0 ignored on all 3 passes (1.06 s / 1.06 s / 1.11 s, 0 SKIPPED).
  • cargo test --release -p xcl --lib hle::d3d12x::list_x:: (3 consecutive parallel passes): 40 passed, 0 failed, 0 ignored on all 3 passes (0.69 s / 0.70 s / 0.69 s, 0 SKIPPED).
  • cargo test --release -p xcl --lib hle::d3d12x::bind::: 8 passed, 0 failed, 0 ignored (0.28 s, 0 SKIPPED).

Paired 60 s RTX 4060 smoke (exact parent 08db8020 vs 93445592)

Both runs completed cleanly at steady 60/2 s pacing with 0 device removals and 0 crashes (93445592 vs 08db8020 xcl.log: 6,175 / 6,114 MB vs 6,116 / 6,116 MB peak/end local VRAM, 4,651 MB vs 4,683 MB end non-local VRAM, 19,567 vs 19,507 translated draws / 1,024 dispatches with 0 skipped).

Exact parent (08db8020):

xcl-smoke v1
commit: 08db8020d323bf478964fcc586152cce54959cfc
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1588 (PresentX 1588)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14000 MB

PR #2579 head (93445592):

xcl-smoke v1
commit: 93445592be144d697a0ba2323112a028502e8213
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1597 (PresentX 1597)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 13979 MB

Limits of coverage

  • Full workspace test suite was not run on 93445592 (only a_build_a_submit_needs_is_wanted, 3 parallel passes each of pso_async:: and list_x::, bind::, release build, and exact-parent paired 60 s smokes).
  • The 60 s smoke ran with warm DXIL/pipeline caches, so cold deferred-dispatch submit contention under background pipeline builds was exercised by the targeted pso_async::/list_x:: release unit tests (including a_build_a_submit_needs_is_wanted) rather than cold cache misses during the smoke.
  • Single discrete NVIDIA 8 GB GPU (RTX 4060) on native Windows 11; no AMD, Intel, or Wine/Linux run on this host.

AI use

Ran the targeted release unit/GPU tests, release build, and exact-parent paired quiet 60 s smoke runs with assistance from Google Antigravity (Gemini 4 Neon); all test counts, timings, memory figures, and smoke blocks were extracted directly from cargo test, xcl.log, and scripts/smoke.ps1 outputs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants