D3D12.X: triple-buffer Presenter to avoid per-frame fence stalls #674

Closed
github-bot wants to merge 2 commits from gh-pr/674/head into gh-pr/674/base
Owner

@⁠RandomGithub12309 on GitHub · 2026-11-24 03:17 UTC · original
RandomGithub12309:d3d12x/triple-buffer-presenter → main · +335 −56 · 1 files · 2 commits · closed without merging

Stacked on #711; only the top commit belongs here.

Triple-buffer Presenter in crates/xcl/src/hle/d3d12x/present.rs so PresentX rotates across three (ID3D12CommandAllocator, ID3D12GraphicsCommandList, copy_source, dumps, fence_val) slots and a 3-buffer flip-discard swap chain instead of blocking on the previous frame's fence on every present.

What is in it

  • f98dc20 (from #711): drain present queue after Present before ResizeBuffers and queue switches.
  • 9699b96 (this PR) in crates/xcl/src/hle/d3d12x/present.rs:
    • Replace the single command allocator/list in Presenter with PRESENT_SLOTS = 3 PresentSlot entries and a 3-buffer swap chain, reclaiming completed slots non-blockingly and waiting only when rotating into an in-flight slot (never treating u64::MAX device-removed sentinel as completed).
    • Preserve p.disabled |= matches!(&e, FenceError::Removed(_)) in ensure_swapchain after a failed drain_queue so a failed Signal is not cleared.
    • Retain the old presenter in drain_and_reset_for_queue on a non-Removed drain failure (e.g. timeout) so in-flight swap-chain and slot resources stay alive until the GPU finishes.
    • Add triple_buffer_slot_completion_and_wait_logic and triple_buffer_present_and_resize_drains_queue_cleanly (covering multi-resize presents and queue-move drain timeout retention).

Tested

  • Hardware: NVIDIA GeForce RTX 5050 Laptop GPU, Intel Core Ultra 7 255HX, Windows 11 Build 26300, rustc 1.100.0 (0ef1bc386 2026-11-09) stable-x86_64-pc-windows-msvc (debug for unit tests, release for smoke.ps1).
  • cargo test -p xcl --lib hle::d3d12x::present -- --test-threads=1 --nocapture: 8 passed, 0 failed, 0 ignored (0 skipped).
  • cargo test --workspace -- --test-threads=4 --skip fuzz_validate_and_gpu: xcl lib 939 passed, 0 failed, 25 ignored (SKIPPED on this adapter: wave64-only GPU tests and pso_measurement_compiles_an_exact_synthetic_record because Windows Developer Mode is off; gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_{0..3} excluded due to pre-existing 0x8007000E CreateComputePipelineState OOM on this adapter).
  • Game checked: 60 s scripts/smoke.ps1 release build at 9699b96 vs main (8e87fc7).

Regression run

xcl-smoke v1
commit: 8e87fc7b62a87ea589ccb9ea6182f514016cf7db
gpu: NVIDIA GeForce RTX 5050 Laptop GPU
title: e61570a3
seconds: 60
exit: 0x0
frames shown: 1603 (PresentX 1603)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14543 MB
xcl-smoke v1
commit: 9699b9677ced62f2a03adde8c9e370e518b3d8f5
gpu: NVIDIA GeForce RTX 5050 Laptop GPU
title: e61570a3
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: 14577 MB

Not tested

  • D3D12 debug layer on this host (0x887A002D), AMD/Intel/wave64 GPUs, Wine/Linux, interaction with #450 (XCL_OVERLAY, not yet on main), and gameplay beyond the 60 s smoke window.

AI use

  • Antigravity (Gemini 4 Neon) wrote the triple-buffering change, addressed review comments (|= on p.disabled, queue-move drain timeout retention, stacking on #711), ran the tests and scripts/smoke.ps1 on the hardware above, and updated this description.
**@⁠RandomGithub12309** on GitHub · 2026-11-24 03:17 UTC · [original](https://github.com/xcl-dev/xcl/pull/674) `RandomGithub12309:d3d12x/triple-buffer-presenter` → `main` · +335 −56 · 1 files · 2 commits · closed without merging Stacked on #711; only the top commit belongs here. Triple-buffer `Presenter` in `crates/xcl/src/hle/d3d12x/present.rs` so `PresentX` rotates across three `(ID3D12CommandAllocator, ID3D12GraphicsCommandList, copy_source, dumps, fence_val)` slots and a 3-buffer flip-discard swap chain instead of blocking on the previous frame's fence on every present. **What is in it** - `f98dc20` (from #711): drain present queue after `Present` before `ResizeBuffers` and queue switches. - `9699b96` (this PR) in `crates/xcl/src/hle/d3d12x/present.rs`: - Replace the single command allocator/list in `Presenter` with `PRESENT_SLOTS = 3` `PresentSlot` entries and a 3-buffer swap chain, reclaiming completed slots non-blockingly and waiting only when rotating into an in-flight slot (never treating `u64::MAX` device-removed sentinel as completed). - Preserve `p.disabled |= matches!(&e, FenceError::Removed(_))` in `ensure_swapchain` after a failed `drain_queue` so a failed `Signal` is not cleared. - Retain the old presenter in `drain_and_reset_for_queue` on a non-`Removed` drain failure (e.g. timeout) so in-flight swap-chain and slot resources stay alive until the GPU finishes. - Add `triple_buffer_slot_completion_and_wait_logic` and `triple_buffer_present_and_resize_drains_queue_cleanly` (covering multi-resize presents and queue-move drain timeout retention). **Tested** - Hardware: NVIDIA GeForce RTX 5050 Laptop GPU, Intel Core Ultra 7 255HX, Windows 11 Build 26300, `rustc 1.100.0 (0ef1bc386 2026-11-09)` `stable-x86_64-pc-windows-msvc` (debug for unit tests, release for `smoke.ps1`). - `cargo test -p xcl --lib hle::d3d12x::present -- --test-threads=1 --nocapture`: **8 passed, 0 failed, 0 ignored** (0 skipped). - `cargo test --workspace -- --test-threads=4 --skip fuzz_validate_and_gpu`: `xcl` lib **939 passed, 0 failed, 25 ignored** (`SKIPPED` on this adapter: wave64-only GPU tests and `pso_measurement_compiles_an_exact_synthetic_record` because Windows Developer Mode is off; `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_{0..3}` excluded due to pre-existing `0x8007000E` `CreateComputePipelineState` OOM on this adapter). - Game checked: 60 s `scripts/smoke.ps1` release build at `9699b96` vs `main` (`8e87fc7`). **Regression run** ``` xcl-smoke v1 commit: 8e87fc7b62a87ea589ccb9ea6182f514016cf7db gpu: NVIDIA GeForce RTX 5050 Laptop GPU title: e61570a3 seconds: 60 exit: 0x0 frames shown: 1603 (PresentX 1603) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14543 MB ``` ``` xcl-smoke v1 commit: 9699b9677ced62f2a03adde8c9e370e518b3d8f5 gpu: NVIDIA GeForce RTX 5050 Laptop GPU title: e61570a3 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: 14577 MB ``` **Not tested** - D3D12 debug layer on this host (`0x887A002D`), AMD/Intel/wave64 GPUs, Wine/Linux, interaction with #450 (`XCL_OVERLAY`, not yet on `main`), and gameplay beyond the 60 s smoke window. **AI use** - Antigravity (Gemini 4 Neon) wrote the triple-buffering change, addressed review comments (`|=` on `p.disabled`, queue-move drain timeout retention, stacking on #711), ran the tests and `scripts/smoke.ps1` on the hardware above, and updated this description.
Previously present_now signaled p.fence before sc.Present(0, DXGI_PRESENT(0)), leaving DXGI's internal Present queue work unordered behind p.fence. When ensure_swapchain called sc.ResizeBuffers or present_now moved queues, old swap-chain back buffers could be freed while still in use (D3D12 error 921).

Extract present_frame_on so q.Signal runs after sc.Present (while still fencing submitted copy command lists on Present failure), extract drain_and_reset_for_queue, add drain_queue to wait for all in-flight copy and Present work before ResizeBuffers and queue switches, handle ResizeBuffers device removal via fence::api_error, and add regression tests for dimension/format resizes, queue switches, timeouts, and ResizeBuffers error recovery.

Assisted-by: Antigravity (Gemini 4 Neon)
Rotate three command allocators, command lists, and swap-chain buffers in Presenter so PresentX no longer blocks on the previous frame's fence every frame. Stacked on #711.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:29:06 +00:00
github-bot closed this pull request 2026-11-26 04:29:06 +00:00
Author
Owner

@⁠RandomGithub12309 on GitHub · 2026-11-24 03:42 UTC · original

Thanks @⁠thehollowedone for catching error 921! Updated PR #674 at d2682eb (d3d12x/triple-buffer-presenter):

  • present_frame_on (crates/xcl/src/hle/d3d12x/present.rs): Moved q.Signal(&p.fence, val) after sc.Present(0, DXGI_PRESENT(0)) so each slot's fence orders behind DXGI's Present queue work instead of signaling before Present.
  • drain_queue before resize & queue switches: Signals and waits on p.fence via drain_queue(p, ...) and clears all p.slots before sc.ResizeBuffers(...) in ensure_swapchain (and before moving to a new queue in present_now).
  • Regression test: Added triple_buffer_present_and_resize_drains_queue_cleanly exercising 640x360 -> 768x432 -> 512x288 presents and resizes (plus checking ID3D12InfoQueue when the debug layer is enabled via XCL_D3D12_DEBUG=1).

Re-verified on RTX 5050 (cargo test --workspace -- --test-threads=4: 694 passed; 0 failed; 41 ignored, 2 skipped no wave64; cargo test -p xcl --lib hle::d3d12x::present -- --nocapture: 8 passed; 0 failed; and 60 s scripts/smoke.ps1). Windows Graphics Tools / ID3D12Debug is not installed on this host (0x887A002D), so re-running under the D3D12 debug layer would confirm error 921 is resolved on your setup.

**@⁠RandomGithub12309** on GitHub · 2026-11-24 03:42 UTC · [original](https://github.com/xcl-dev/xcl/pull/674#issuecomment-7121343906) Thanks @⁠thehollowedone for catching error 921! Updated PR #674 at `d2682eb` (`d3d12x/triple-buffer-presenter`): - **`present_frame_on` (`crates/xcl/src/hle/d3d12x/present.rs`)**: Moved `q.Signal(&p.fence, val)` **after** `sc.Present(0, DXGI_PRESENT(0))` so each slot's fence orders behind DXGI's `Present` queue work instead of signaling before `Present`. - **`drain_queue` before resize & queue switches**: Signals and waits on `p.fence` via `drain_queue(p, ...)` and clears all `p.slots` before `sc.ResizeBuffers(...)` in `ensure_swapchain` (and before moving to a new queue in `present_now`). - **Regression test**: Added `triple_buffer_present_and_resize_drains_queue_cleanly` exercising `640x360` -> `768x432` -> `512x288` presents and resizes (plus checking `ID3D12InfoQueue` when the debug layer is enabled via `XCL_D3D12_DEBUG=1`). Re-verified on RTX 5050 (`cargo test --workspace -- --test-threads=4`: `694 passed; 0 failed; 41 ignored`, `2` skipped `no wave64`; `cargo test -p xcl --lib hle::d3d12x::present -- --nocapture`: `8 passed; 0 failed`; and 60 s `scripts/smoke.ps1`). Windows Graphics Tools / `ID3D12Debug` is not installed on this host (`0x887A002D`), so re-running under the D3D12 debug layer would confirm error 921 is resolved on your setup.
Author
Owner

@⁠MesshM on GitHub · 2026-11-24 03:42 UTC · original

Test run of 93f147c09318d7f0e65e3d9a1add2fec84f36bd5 on AMD RDNA4. I merged it onto current main 91f9a5e locally (clean merge) and tested that tree.

Tested

  • AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200, Rust 1.100.0 stable-x86_64-pc-windows-msvc, debug
  • cargo build --workspace + cargo test --workspace -- --test-threads=4 on the merge: 693 passed, 0 failed, 41 ignored, exit code 0; xcl lib tests 653 passed, 0 failed, 21 ignored
  • 0 SKIPPED; triple_buffer_slot_completion_and_wait_logic passes.

Review: Before ResizeBuffers it waits for the latest fence value (p.value); all slots signal the same monotonic fence, so that covers the three slots, and each slot's copy_source is dropped after. The device-removed value (u64::MAX) is not treated as completed. The frame-dump stop at the first resize mentioned above happens on main too, so it is not from this change. I found nothing to change.

Not tested: no retail title or regression run (I have no unpacked game), no XCL_SAMPLE_* tests, release build; the PR's head on its old base was not run, only its merge onto main.

Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.

**@⁠MesshM** on GitHub · 2026-11-24 03:42 UTC · [original](https://github.com/xcl-dev/xcl/pull/674#issuecomment-7121353014) Test run of `93f147c09318d7f0e65e3d9a1add2fec84f36bd5` on AMD RDNA4. I merged it onto current `main` `91f9a5e` locally (clean merge) and tested that tree. **Tested** - AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200, Rust 1.100.0 `stable-x86_64-pc-windows-msvc`, debug - `cargo build --workspace` + `cargo test --workspace -- --test-threads=4` on the merge: **693 passed, 0 failed, 41 ignored**, exit code 0; `xcl` lib tests 653 passed, 0 failed, 21 ignored - **0 `SKIPPED`**; `triple_buffer_slot_completion_and_wait_logic` passes. **Review:** Before `ResizeBuffers` it waits for the latest fence value (`p.value`); all slots signal the same monotonic fence, so that covers the three slots, and each slot's `copy_source` is dropped after. The device-removed value (`u64::MAX`) is not treated as completed. The frame-dump stop at the first resize mentioned above happens on `main` too, so it is not from this change. I found nothing to change. **Not tested:** no retail title or regression run (I have no unpacked game), no `XCL_SAMPLE_*` tests, release build; the PR's head on its old base was not run, only its merge onto `main`. Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
Author
Owner

@⁠MonkeyPython on GitHub · 2026-11-24 03:45 UTC · original

AMD / wave64 data point (the "Not tested" axis): the present-module tests pass on an AMD Raphael iGPU (RDNA2, native wave64) and on NVIDIA wave32 at this PR's head.

Setup: Windows 11 Pro 26300, Ryzen 7 7800X3D, 32 GB; AMD Radeon(TM) Graphics (Raphael iGPU, 485 MiB, wave64, no mesh shaders) and RTX 3080 Ti 12 GB (driver 621.01, wave32). PR head d2682eb, release.

Runs (cargo test -p xcl --release --lib present::):

  • XCL_ADAPTER=Radeon (iGPU; the selector errors on no match, so a pass means it ran there): 8 passed / 0 failed, 0.24 s.
  • Default adapter (3080 Ti): 8 passed / 0 failed, 0.20 s.

Not tested: the frame-dump resize regression reported elsewhere (D3D12 error 921 at 640×360 → 768×432) — these unit tests do not exercise resize; long sessions, other titles.

AI use: Gentle Shell (Pi coding agent), model qwen4-max: ran the tests and wrote this report from their logs; a human reviews it before posting. No code changes.

**@⁠MonkeyPython** on GitHub · 2026-11-24 03:45 UTC · [original](https://github.com/xcl-dev/xcl/pull/674#issuecomment-7121395959) AMD / wave64 data point (the "Not tested" axis): the present-module tests pass on an AMD Raphael iGPU (RDNA2, native wave64) and on NVIDIA wave32 at this PR's head. **Setup:** Windows 11 Pro 26300, Ryzen 7 7800X3D, 32 GB; AMD Radeon(TM) Graphics (Raphael iGPU, 485 MiB, wave64, no mesh shaders) and RTX 3080 Ti 12 GB (driver 621.01, wave32). PR head `d2682eb`, release. **Runs (`cargo test -p xcl --release --lib present::`):** - `XCL_ADAPTER=Radeon` (iGPU; the selector errors on no match, so a pass means it ran there): **8 passed / 0 failed**, 0.24 s. - Default adapter (3080 Ti): **8 passed / 0 failed**, 0.20 s. **Not tested:** the frame-dump resize regression reported elsewhere (D3D12 error 921 at 640×360 → 768×432) — these unit tests do not exercise resize; long sessions, other titles. **AI use:** Gentle Shell (Pi coding agent), model qwen4-max: ran the tests and wrote this report from their logs; a human reviews it before posting. No code changes.
Author
Owner

@⁠thehollowedone on GitHub · 2026-11-24 03:26 UTC · original · edited 2026-11-24 03:47 UTC

Retest after the resize fix

I reran the same synthetic frame-dump fixture on d2682eb and with that revision integrated onto main at f4ce27c. Both used the revised production presenter without the earlier scratch queue drain.

Each run verified 28 presents, three resizes, and 14 BMP captures. All dimensions and 250,944 sampled pixels matched in each run. The D3D12 debug layer was active on the RTX 3080 Ti and reported no errors. The new stock triple_buffer_present_and_resize_drains_queue_cleanly test also passed on the exact head without a skip.

Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti / 621.35, Rust 1.99.1 MSVC, debug. I used XCL_FRAME_DUMP=2 and the same scratch fixture command below. Queue changes, device removal, and retail performance remain untested. Codex with GPT-6.2 Sol ran the tests and drafted this update.

Earlier reproduction and scratch control

Tested

A synthetic frame-dump test stopped at the first resize (640×360 → 768×432) on both main at 91f9a5e and that revision with 93f147c applied. Both hit D3D12 error 921. Repeating the integrated test with debug names identified the resource as a swap-chain back buffer.

In a scratch control I drained the present queue immediately before ResizeBuffers, after the previous Present. The integrated fixture then passed 28 presents, 3 resizes, and 14 BMP captures with no debug-layer errors. The dimensions and all 250,944 sampled pixels matched. The existing copy fence is signaled before Present. Copy signal and Present

Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti / 621.35, Rust 1.99.1 MSVC, debug. I used XCL_FRAME_DUMP=2 and ran cargo test --offline --locked -p xcl --lib hle::d3d12x::present::scratch_resize::check -- --exact --nocapture --test-threads=1.

Not tested

Queue changes, device removal, and retail performance.

AI use

Codex with GPT-6.2 Sol wrote the scratch fixture, ran the tests, and drafted this report.

**@⁠thehollowedone** on GitHub · 2026-11-24 03:26 UTC · [original](https://github.com/xcl-dev/xcl/pull/674#issuecomment-7121097043) · edited 2026-11-24 03:47 UTC **Retest after the resize fix** I reran the same synthetic frame-dump fixture on [`d2682eb`](https://github.com/ivall/xcl/commit/d2682eb5c72d96e05408ed08132d5e0c51f410c9) and with that revision integrated onto [`main` at `f4ce27c`](https://github.com/ivall/xcl/commit/f4ce27ceb6d1b0576d0c659b713b674778bf1968). Both used the revised production presenter without the earlier scratch queue drain. Each run verified **28 presents, three resizes, and 14 BMP captures**. All dimensions and 250,944 sampled pixels matched in each run. The D3D12 debug layer was active on the RTX 3080 Ti and reported no errors. The new stock `triple_buffer_present_and_resize_drains_queue_cleanly` test also passed on the exact head without a skip. Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti / 621.35, Rust 1.99.1 MSVC, debug. I used `XCL_FRAME_DUMP=2` and the same scratch fixture command below. Queue changes, device removal, and retail performance remain untested. Codex with GPT-6.2 Sol ran the tests and drafted this update. <details> <summary>Earlier reproduction and scratch control</summary> **Tested** A synthetic frame-dump test stopped at the first resize (640×360 → 768×432) on both [`main` at `91f9a5e`](https://github.com/ivall/xcl/commit/91f9a5e9f03156ea82dc55a18f7704862da7a5db) and that revision with [`93f147c`](https://github.com/ivall/xcl/commit/93f147c09318d7f0e65e3d9a1add2fec84f36bd5) applied. Both hit D3D12 error 921. Repeating the integrated test with debug names identified the resource as a swap-chain back buffer. In a scratch control I drained the present queue immediately before `ResizeBuffers`, after the previous `Present`. The integrated fixture then passed **28 presents, 3 resizes, and 14 BMP captures** with no debug-layer errors. The dimensions and all 250,944 sampled pixels matched. The existing copy fence is signaled before `Present`. [Copy signal and Present](https://github.com/ivall/xcl/blob/93f147c09318d7f0e65e3d9a1add2fec84f36bd5/crates/xcl/src/hle/d3d12x/present.rs#L785-L797) Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti / 621.35, Rust 1.99.1 MSVC, debug. I used `XCL_FRAME_DUMP=2` and ran `cargo test --offline --locked -p xcl --lib hle::d3d12x::present::scratch_resize::check -- --exact --nocapture --test-threads=1`. **Not tested** Queue changes, device removal, and retail performance. **AI use** Codex with GPT-6.2 Sol wrote the scratch fixture, ran the tests, and drafted this report. </details>
Author
Owner

@⁠JoaoPauluu on GitHub · 2026-11-24 03:59 UTC · original

Test report: #674 under Wine (Linux, NVIDIA): the swap chain is DXVK's DXGI on vkd3d-proton

The other reports are Windows runs. Under Wine the 3-buffer swap chain is DXVK's DXGI presenting vkd3d-proton queues, a different present path. GTA VI runs the same on the base and this PR, and the present module tests pass under Wine.

Setup

  • CachyOS, kernel 7.3.3-1-cachyos, Intel i5-10400F, 16 GB RAM, NVIDIA GeForce RTX 3060 12 GB, driver 620.70.06
  • Proton Experimental experimental-11.0-20261112 (wine-11.0), vkd3d-proton v3.1 (4522cc1a) + the patch from #257, DXVK from Proton, DXC 1.9.2609, DXVK_CONFIG="dxgi.hideNvidiaGpu = False"
  • Rust 1.100.0, x86_64-pc-windows-gnu (mingw-w64-gcc 16.2.0); release builds for the runs, debug for the tests
  • Commits: this PR's head d2682eb and its base main f4ce27c

Unit tests (lib test binary under Wine, --test-threads=1, filter present): 8 passed, 0 failed, 0 ignored, in 2 of 2 runs, including triple_buffer_slot_completion_and_wait_logic and triple_buffer_present_and_resize_drains_queue_cleanly.

GTA VI 1.0.2.1 (my own dump; 60 s runs with scripts/linux/smoke.sh from #257, XCL_NETWORK=0, alternating base / PR / PR / base)

build frames shown frame-event waits timed out removals / crashes
f4ce27c 992, 978 0, 0 0 / 0
d2682eb 981, 1001 0, 0 0 / 0

No swap-chain or err: lines in Wine's stderr on any of the four runs. Both builds hold about 60 presents per 2 s in the steady parts, so I saw no frame-count difference either way.

xcl-smoke v1
commit: f4ce27ceb6d1b0576d0c659b713b674778bf1968
gpu: NVIDIA GeForce RTX 3060
title: GTA6.Xbox.v1.0.2.1
seconds: 60
exit: 0x0
frames shown: 992 (PresentX 992)
presents per 2 s (last 3): 49 60 30
device removals: 0
crashes: 0
peak commit: 0 MB
xcl-smoke v1
commit: d2682eb5c72d96e05408ed08132d5e0c51f410c9
gpu: NVIDIA GeForce RTX 3060
title: GTA6.Xbox.v1.0.2.1
seconds: 60
exit: 0x0
frames shown: 981 (PresentX 981)
presents per 2 s (last 3): 59 6 12
device removals: 0
crashes: 0
peak commit: 0 MB

(The first pair. peak commit: 0 MB is XCL reading 0 MB committed under Wine, see #257; the 125 % commit comparison says nothing here.)

Not tested

  • Windows (covered by the other reports), AMD, window resizes during a title run, frame dumps (XCL_FRAME_DUMP) in the title, the picture (not checked; black under Wine in my earlier runs, #175)

AI use: Claude Code (Claude Opus 5.5) built both commits, ran everything above on the machine above and wrote this report. The blocks and counts are pasted from those runs. The account owner asked for test reports to be posted while they were away and has not reviewed this one.

**@⁠JoaoPauluu** on GitHub · 2026-11-24 03:59 UTC · [original](https://github.com/xcl-dev/xcl/pull/674#issuecomment-7121599296) ### Test report: #674 under Wine (Linux, NVIDIA): the swap chain is DXVK's DXGI on vkd3d-proton The other reports are Windows runs. Under Wine the 3-buffer swap chain is DXVK's DXGI presenting vkd3d-proton queues, a different present path. GTA VI runs the same on the base and this PR, and the present module tests pass under Wine. **Setup** - CachyOS, kernel 7.3.3-1-cachyos, Intel i5-10400F, 16 GB RAM, NVIDIA GeForce RTX 3060 12 GB, driver 620.70.06 - Proton Experimental `experimental-11.0-20261112` (wine-11.0), vkd3d-proton v3.1 (`4522cc1a`) + the patch from #257, DXVK from Proton, DXC 1.9.2609, `DXVK_CONFIG="dxgi.hideNvidiaGpu = False"` - Rust 1.100.0, `x86_64-pc-windows-gnu` (mingw-w64-gcc 16.2.0); release builds for the runs, debug for the tests - Commits: this PR's head `d2682eb` and its base `main` `f4ce27c` **Unit tests** (lib test binary under Wine, `--test-threads=1`, filter `present`): 8 passed, 0 failed, 0 ignored, in 2 of 2 runs, including `triple_buffer_slot_completion_and_wait_logic` and `triple_buffer_present_and_resize_drains_queue_cleanly`. **GTA VI 1.0.2.1** (my own dump; 60 s runs with `scripts/linux/smoke.sh` from #257, `XCL_NETWORK=0`, alternating base / PR / PR / base) | build | frames shown | frame-event waits timed out | removals / crashes | |---|---|---|---| | `f4ce27c` | 992, 978 | 0, 0 | 0 / 0 | | `d2682eb` | 981, 1001 | 0, 0 | 0 / 0 | No swap-chain or `err:` lines in Wine's stderr on any of the four runs. Both builds hold about 60 presents per 2 s in the steady parts, so I saw no frame-count difference either way. ``` xcl-smoke v1 commit: f4ce27ceb6d1b0576d0c659b713b674778bf1968 gpu: NVIDIA GeForce RTX 3060 title: GTA6.Xbox.v1.0.2.1 seconds: 60 exit: 0x0 frames shown: 992 (PresentX 992) presents per 2 s (last 3): 49 60 30 device removals: 0 crashes: 0 peak commit: 0 MB ``` ``` xcl-smoke v1 commit: d2682eb5c72d96e05408ed08132d5e0c51f410c9 gpu: NVIDIA GeForce RTX 3060 title: GTA6.Xbox.v1.0.2.1 seconds: 60 exit: 0x0 frames shown: 981 (PresentX 981) presents per 2 s (last 3): 59 6 12 device removals: 0 crashes: 0 peak commit: 0 MB ``` (The first pair. `peak commit: 0 MB` is XCL reading 0 MB committed under Wine, see #257; the 125 % commit comparison says nothing here.) **Not tested** - Windows (covered by the other reports), AMD, window resizes during a title run, frame dumps (`XCL_FRAME_DUMP`) in the title, the picture (not checked; black under Wine in my earlier runs, #175) **AI use:** Claude Code (Claude Opus 5.5) built both commits, ran everything above on the machine above and wrote this report. The blocks and counts are pasted from those runs. The account owner asked for test reports to be posted while they were away and has not reviewed this one.
Author
Owner

@⁠upipibi on GitHub · 2026-11-24 04:04 UTC · original

Merge note for this PR and #450 (XCL_OVERLAY). Both are green and each merges cleanly onto main f4ce27ceb6 on its own, but together they conflict in crates/xcl/src/hle/d3d12x/present.rs in either order (heads d2682eb5c7 and bac87c3db5).

More than text is involved. #450 keeps one overlay upload buffer on Presenter (overlay: Option<(ID3D12Resource, u32, u32)>), and overlay_copy rewrites it every frame, reusing it while the panel size stays the same. On main that's safe, because present_now waits for the previous copy before reusing anything. With this PR's three PresentSlots in flight, one shared overlay buffer would be rewritten while an earlier slot's copy may still read it, so the panel could tear or show the next frame's stats.

So whichever lands second should probably move the overlay into PresentSlot, next to the copy_source and dumps this PR already moved there, and not just resolve the text conflict.

For the rest of the queue: of the 24 PRs that are green with full Tested counts, these two and the netoff.rs trio on #570 are the only pairs that conflict with each other (276 pairs merged onto main).

Read-only, not built. AI-assisted (Claude Code).

**@⁠upipibi** on GitHub · 2026-11-24 04:04 UTC · [original](https://github.com/xcl-dev/xcl/pull/674#issuecomment-7121682216) Merge note for this PR and #450 (`XCL_OVERLAY`). Both are green and each merges cleanly onto `main` `f4ce27ceb6` on its own, but together they conflict in `crates/xcl/src/hle/d3d12x/present.rs` in either order (heads `d2682eb5c7` and `bac87c3db5`). More than text is involved. #450 keeps one overlay upload buffer on `Presenter` (`overlay: Option<(ID3D12Resource, u32, u32)>`), and `overlay_copy` rewrites it every frame, reusing it while the panel size stays the same. On `main` that's safe, because `present_now` waits for the previous copy before reusing anything. With this PR's three `PresentSlot`s in flight, one shared overlay buffer would be rewritten while an earlier slot's copy may still read it, so the panel could tear or show the next frame's stats. So whichever lands second should probably move the overlay into `PresentSlot`, next to the `copy_source` and `dumps` this PR already moved there, and not just resolve the text conflict. For the rest of the queue: of the 24 PRs that are green with full Tested counts, these two and the `netoff.rs` trio on #570 are the only pairs that conflict with each other (276 pairs merged onto `main`). Read-only, not built. AI-assisted (Claude Code).
Author
Owner

@⁠thehollowedone on GitHub · 2026-11-24 04:58 UTC · original

I reran the resize path on d2682eb after the fence-order fix. A scratch extension of the stock test ran 24 presents across 640×360 → 768×432 → 512×288, first with captures disabled and then with XCL_FRAME_DUMP=2. Both runs confirmed a three-buffer swap chain, drained successfully, and reported zero D3D12 errors, including zero 921 messages. The second run verified all 12 readback dimensions and the expected bright/dark content across 177,408 sampled pixels.

Windows 11 build 26300, RTX 3080 Ti / 621.35, Rust 1.99.1 MSVC, debug. The fixture required an active D3D12 InfoQueue. cargo test --offline --locked -p xcl --lib triple_buffer_present_and_resize_drains_queue_cleanly -- --nocapture --test-threads=1 passed 1/1 in each fresh process, zero skips. This covers single-queue resize and readback. Retail frame pacing and the overlay combination were outside this test. AI-assisted. Codex (GPT-6, exact variant unavailable) extended and ran the fixture and drafted this reply.

**@⁠thehollowedone** on GitHub · 2026-11-24 04:58 UTC · [original](https://github.com/xcl-dev/xcl/pull/674#issuecomment-7122512964) I reran the resize path on [`d2682eb`](https://github.com/ivall/xcl/commit/d2682eb5c72d96e05408ed08132d5e0c51f410c9) after the [fence-order fix](https://github.com/ivall/xcl/pull/674#issuecomment-7121343906). A scratch extension of the stock test ran 24 presents across 640×360 → 768×432 → 512×288, first with captures disabled and then with `XCL_FRAME_DUMP=2`. Both runs confirmed a three-buffer swap chain, drained successfully, and reported zero D3D12 errors, including zero 921 messages. The second run verified all 12 readback dimensions and the expected bright/dark content across 177,408 sampled pixels. Windows 11 build 26300, RTX 3080 Ti / 621.35, Rust 1.99.1 MSVC, debug. The fixture required an active D3D12 InfoQueue. `cargo test --offline --locked -p xcl --lib triple_buffer_present_and_resize_drains_queue_cleanly -- --nocapture --test-threads=1` passed 1/1 in each fresh process, zero skips. This covers single-queue resize and readback. Retail frame pacing and the overlay combination were outside this test. AI-assisted. Codex (GPT-6, exact variant unavailable) extended and ran the fixture and drafted this reply.
Author
Owner

@⁠milas6669 on GitHub · 2026-11-24 06:01 UTC · original

Regression run of d2682eb5c72d (PR head, built as it is, not merged onto main) against main e50836b, on a retail title.

Tested

  • NVIDIA GeForce RTX 3070 (32-lane waves), Intel i9-10900KF, Windows 11 Pro 10.0.26200, rustc 1.100.0, release builds
  • scripts/smoke.ps1 -Seconds 60, the same title and time for both, one run each, main first:

main (e50836b):

xcl-smoke v1
commit: e50836bdf6f5c026f281d545ed86fb2f07ba6e6a
gpu: NVIDIA GeForce RTX 3070
title: dumped
seconds: 60
exit: 0x0
frames shown: 287 (PresentX 287)
presents per 2 s (last 3): 9 10 10
device removals: 0
crashes: 0
peak commit: 15863 MB

this PR (d2682eb):

xcl-smoke v1
commit: d2682eb5c72d96e05408ed08132d5e0c51f410c9
gpu: NVIDIA GeForce RTX 3070
title: dumped
seconds: 60
exit: 0x0
frames shown: 295 (PresentX 295)
presents per 2 s (last 3): 13 18 18
device removals: 0
crashes: 0
peak commit: 15481 MB

What this does and does not say

  • It is a regression check: no crash, no device removal, and the frame count and peak commit are within the limits in CONTRIBUTING.md (at least 80 % of main's frames, at most 125 % of its peak commit).
  • It is not a speed measurement. One 60 s run varies a lot here: four runs of main on this machine gave 424, 359, 370 and 287 frames. A difference of this size between main and the PR is inside that noise.

Not tested

  • cargo test on this head (I did not run the test suite for this report)
  • AMD / wave64 hardware, visual correctness (I did not look at the picture)

AI use

  • Claude Code, Claude Sonnet 5.5, ran the commands and wrote this report.
**@⁠milas6669** on GitHub · 2026-11-24 06:01 UTC · [original](https://github.com/xcl-dev/xcl/pull/674#issuecomment-7123497072) Regression run of `d2682eb5c72d` (PR head, built as it is, not merged onto main) against `main` e50836b, on a retail title. **Tested** - NVIDIA GeForce RTX 3070 (32-lane waves), Intel i9-10900KF, Windows 11 Pro 10.0.26200, rustc 1.100.0, release builds - `scripts/smoke.ps1 -Seconds 60`, the same title and time for both, one run each, main first: main (e50836b): ``` xcl-smoke v1 commit: e50836bdf6f5c026f281d545ed86fb2f07ba6e6a gpu: NVIDIA GeForce RTX 3070 title: dumped seconds: 60 exit: 0x0 frames shown: 287 (PresentX 287) presents per 2 s (last 3): 9 10 10 device removals: 0 crashes: 0 peak commit: 15863 MB ``` this PR (d2682eb): ``` xcl-smoke v1 commit: d2682eb5c72d96e05408ed08132d5e0c51f410c9 gpu: NVIDIA GeForce RTX 3070 title: dumped seconds: 60 exit: 0x0 frames shown: 295 (PresentX 295) presents per 2 s (last 3): 13 18 18 device removals: 0 crashes: 0 peak commit: 15481 MB ``` **What this does and does not say** - It is a regression check: no crash, no device removal, and the frame count and peak commit are within the limits in CONTRIBUTING.md (at least 80 % of main's frames, at most 125 % of its peak commit). - It is not a speed measurement. One 60 s run varies a lot here: four runs of main on this machine gave 424, 359, 370 and 287 frames. A difference of this size between main and the PR is inside that noise. **Not tested** - `cargo test` on this head (I did not run the test suite for this report) - AMD / wave64 hardware, visual correctness (I did not look at the picture) **AI use** - Claude Code, Claude Sonnet 5.5, ran the commands and wrote this report.
Author
Owner

@⁠iggyvilla on GitHub · 2026-11-24 07:34 UTC · original

Code read of d2682eb; nothing built or run. The slot recycling, the Signal after Present and the UINT64_MAX handling look right to me. Two things:

  1. present_now drops the old presenter even when the queue-move drain fails: let _ = drain_queue(old, 1000); then *guard = None; (present.rs:705-710). On a timeout that releases the swap chain with a Present still queued, plus three allocators/lists that may still run; Presenter::drop only closes the event. The PR body says a local follow-up (527aab2) "retains the current presenter on a queue-drain timeout"; that fix belongs in this PR, and the new test does not cover this path.
  2. ensure_swapchain does p.disabled = matches!(&e, FenceError::Removed(_)) after a failed drain (:631). drain_queue sets p.disabled = true when Signal fails (:610) and returns a non-Removed error, so this assignment clears it again. |= keeps it.

AI use: Claude Code, Claude Sonnet 5.5, read the code at the head above and drafted this; a person checked it before posting.

**@⁠iggyvilla** on GitHub · 2026-11-24 07:34 UTC · [original](https://github.com/xcl-dev/xcl/pull/674#issuecomment-7125136186) Code read of `d2682eb`; nothing built or run. The slot recycling, the `Signal` after `Present` and the `UINT64_MAX` handling look right to me. Two things: 1. `present_now` drops the old presenter even when the queue-move drain fails: `let _ = drain_queue(old, 1000);` then `*guard = None;` (`present.rs:705-710`). On a timeout that releases the swap chain with a `Present` still queued, plus three allocators/lists that may still run; `Presenter::drop` only closes the event. The PR body says a local follow-up (`527aab2`) "retains the current presenter on a queue-drain timeout"; that fix belongs in this PR, and the new test does not cover this path. 2. `ensure_swapchain` does `p.disabled = matches!(&e, FenceError::Removed(_))` after a failed drain (`:631`). `drain_queue` sets `p.disabled = true` when `Signal` fails (`:610`) and returns a non-`Removed` error, so this assignment clears it again. `|=` keeps it. AI use: Claude Code, Claude Sonnet 5.5, read the code at the head above and drafted this; a person checked it before posting.
Author
Owner

@⁠RandomGithub12309 on GitHub · 2026-11-25 00:57 UTC · original · edited 2026-11-25 01:03 UTC

Updated at 9699b96 (rebased onto main 8e87fc7 and stacked on #711):

  • Addressed @⁠iggyvilla's two points: ensure_swapchain now uses p.disabled |= matches!(&e, FenceError::Removed(_)) so a failed Signal in drain_queue is preserved, and queue moves now retain the old presenter on non-Removed drain timeouts via drain_and_reset_for_queue (covered in triple_buffer_present_and_resize_drains_queue_cleanly).
  • Stacked directly on #711 (f98dc20) so only the triple-buffering commit belongs to this PR and the two no longer conflict.
**@⁠RandomGithub12309** on GitHub · 2026-11-25 00:57 UTC · [original](https://github.com/xcl-dev/xcl/pull/674#issuecomment-7149066428) · edited 2026-11-25 01:03 UTC Updated at `9699b96` (rebased onto `main` `8e87fc7` and stacked on #711): - Addressed @⁠iggyvilla's two points: `ensure_swapchain` now uses `p.disabled |= matches!(&e, FenceError::Removed(_))` so a failed `Signal` in `drain_queue` is preserved, and queue moves now retain the old presenter on non-`Removed` drain timeouts via `drain_and_reset_for_queue` (covered in `triple_buffer_present_and_resize_drains_queue_cleanly`). - Stacked directly on #711 (`f98dc20`) so only the triple-buffering commit belongs to this PR and the two no longer conflict.
Author
Owner

@⁠JJAutoCompare on GitHub · 2026-11-25 01:49 UTC · original

PR #674 — D3D12.X triple-buffered Presenter verification

PR head 9699b9677ced62f2a03adde8c9e370e518b3d8f5 was fetched from origin (xcl-dev/xcl). The detached checkout was clean before and after the run. origin/main was 3da2abb81606df622610e009f0430de99aa9881c. git merge-tree --write-tree <main SHA> HEAD exited 0 and produced 95fceb50338b2b992229170821b681d2916d3e48.

What is in it

  • crates/xcl/src/hle/d3d12x/present.rs adds three reusable presenter slots to reduce per-frame fence waits and adds tests for slot completion and swap-chain resizing.

Tested

  • STOR-WINLAB: Intel Arc A770 16 GiB, driver 32.0.101.9175, DoublePrecisionFloatShaderOps=0, wave range 8–32. AMD Ryzen 7 3800X, Windows 11 Enterprise Evaluation build 26200.9974, DXC/DXIL 1.9.2609.5, Rust 1.100.0 (0ef1bc386 2026-11-09). The suite logged the Arc A770. Presenter resize uses automatic adapter selection.
  • cargo build --workspace and cargo test --workspace --no-run succeeded outside the Arc lock. Both profiles were unoptimized, with debuginfo and incremental compilation disabled.
  • cargo test -p xcl --lib triple_buffer_slot_completion_and_wait_logic -- --show-output passed outside the lock (1 passed, 0 failed, 0 ignored, 0 explicit skips).
  • cargo test -p xcl --lib triple_buffer_present_and_resize_drains_queue_cleanly -- --show-output ran via Invoke-ArcTest.ps1. Cargo recorded 1 passed, 0 failed, 0 ignored. The test reported SKIPPED hle::d3d12x::present::frame_dump_tests::triple_buffer_present_and_resize_drains_queue_cleanly: no swap chain after CreateSwapChainForHwnd returned 0x887A0022, so the resize path was unverified.
  • cargo test --workspace --no-fail-fast -- --test-threads=4 --show-output ran once via Invoke-ArcTest.ps1 and exited 101. All 19 test binaries and the doc-test harness reported results: 966 passed, 26 failed, 45 ignored, with 27 explicit SKIPPED entries across 17 test names. Some entries cover individual test cases. The pass total is the raw harness count and includes tests that reported skips. Full output is in L:\XclTooling\neon-slot-2\tmp\pr674-suite.log.

Failures

  • These 21 library tests failed in CreateComputePipelineState with 0x80070057 (invalid parameter). The four DXIL fuzz shards failed at seeds 2, 506, 1003 and 1501, respectively.
    • gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0
    • gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1
    • gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_2
    • gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_3
    • gpu::dxil::ops_tests::doubles_match_cpu
    • gpu::dxil::ops_tests::groupshared_barrier_and_atomics_run
    • gpu::dxil::round_tests::gpu_direct_f32_round_modes_dynamic_and_denormals
    • gpu::dxil::round_tests::gpu_direct_f32_round_preserved_denormal_times_inf_is_inf
    • gpu::dxil::round_tests::gpu_direct_f32_round_modes_static
    • gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu
    • gpu::recomp::tests::gpu_clamp_and_omod_per_instruction
    • gpu::recomp::tests::gpu_f64_literal_high_word
    • gpu::recomp::tests::gpu_f64_compares_with_nan
    • gpu::recomp::tests::gpu_f64_class_compare
    • gpu::recomp::tests::gpu_f64_roots
    • gpu::recomp::tests::gpu_f64_rounding_and_conversions
    • gpu::recomp::tests::gpu_f64_math_random
    • gpu::recomp::tests::gpu_frexp_f64_exp_and_mant
    • gpu::recomp::tests::gpu_float_compares_random
    • gpu::recomp::tests::gpu_ldexp_f64
    • gpu::recomp::tests::gpu_rndne_f64
  • gpu::recomp::tests::gpu_nonfused_mad_and_mac_prevent_fma_contraction failed the fused v_fma_f32 overflow control assertion.
  • gpu::recomp::tests::gpu_ps_image_sample_offset_implicit_lod_between_mips read 25.609375 at pixel (0,0), expected 26.
  • gpu::recomp::tests::gpu_valu_16_and_64_bit failed the lane-0 v_add_f16 high-half preservation assertion.
  • gpu::recomp::tests::gpu_wave64_ps_whole_wave_reductions read [2, 217, 2] at pixel 0, expected [2, 216, 2].
  • test_title_runs_and_game_folder_is_untouched failed the RSSetDepthBiasX(-1000.5) check. The top-right pixel was blue where the depth test expected green.

Workspace SKIPPED entries

SKIPPED gpu::recomp::lower::tests::a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower::tests::cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower::tests::coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower::tests::the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::a_per_lane_2d_or_3d_group_runs_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu: const_mask, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))
SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 arithmetic, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 compares, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))
SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer arithmetic, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 rounding, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 transcendentals, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer carries, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 three-source, wave64: no wave64
SKIPPED gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64
SKIPPED gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64
SKIPPED hle::d3d12x::present::frame_dump_tests::triple_buffer_present_and_resize_drains_queue_cleanly: no swap chain
SKIPPED shaders::tests::pso_measurement_compiles_an_exact_synthetic_record: cannot disable the driver cache (Windows Developer Mode is required): The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)
SKIPPED placed_title_textures_share_vram_and_preserve_pixels: tiled tier < 2
SKIPPED test_title_draws_with_a_root_signature_under_the_debug_layer: no d3d12SDKLayers.dll
SKIPPED heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows
SKIPPED uploads_start_from_each_subresources_state: no D3D12 debug layer (The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D))

Not tested

  • GPU presenter resizing and queue drain in a working swap chain, retail-title regression smoke runs, and real-title frame timing or present throughput.
  • A test run on origin/main to establish which failures reproduce on the baseline, AMD/NVIDIA adapters, and retail fixtures gated by XCL_SAMPLE_*. The sample variables were unset.

AI use

  • T3 Code / Codex (gpt-6.2-sol) ran the build and tests, analyzed the logs, and drafted this report. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified the counts against pr674-suite.log and published this report.
**@⁠JJAutoCompare** on GitHub · 2026-11-25 01:49 UTC · [original](https://github.com/xcl-dev/xcl/pull/674#issuecomment-7149999570) # PR #674 — D3D12.X triple-buffered Presenter verification PR head `9699b9677ced62f2a03adde8c9e370e518b3d8f5` was fetched from `origin` (`xcl-dev/xcl`). The detached checkout was clean before and after the run. `origin/main` was `3da2abb81606df622610e009f0430de99aa9881c`. `git merge-tree --write-tree <main SHA> HEAD` exited 0 and produced `95fceb50338b2b992229170821b681d2916d3e48`. **What is in it** - `crates/xcl/src/hle/d3d12x/present.rs` adds three reusable presenter slots to reduce per-frame fence waits and adds tests for slot completion and swap-chain resizing. **Tested** - STOR-WINLAB: Intel Arc A770 16 GiB, driver `32.0.101.9175`, `DoublePrecisionFloatShaderOps=0`, wave range `8–32`. AMD Ryzen 7 3800X, Windows 11 Enterprise Evaluation build `26200.9974`, DXC/DXIL `1.9.2609.5`, Rust `1.100.0 (0ef1bc386 2026-11-09)`. The suite logged the Arc A770. Presenter resize uses automatic adapter selection. - `cargo build --workspace` and `cargo test --workspace --no-run` succeeded outside the Arc lock. Both profiles were unoptimized, with debuginfo and incremental compilation disabled. - `cargo test -p xcl --lib triple_buffer_slot_completion_and_wait_logic -- --show-output` passed outside the lock (1 passed, 0 failed, 0 ignored, 0 explicit skips). - `cargo test -p xcl --lib triple_buffer_present_and_resize_drains_queue_cleanly -- --show-output` ran via `Invoke-ArcTest.ps1`. Cargo recorded 1 passed, 0 failed, 0 ignored. The test reported `SKIPPED hle::d3d12x::present::frame_dump_tests::triple_buffer_present_and_resize_drains_queue_cleanly: no swap chain` after `CreateSwapChainForHwnd` returned `0x887A0022`, so the resize path was unverified. - `cargo test --workspace --no-fail-fast -- --test-threads=4 --show-output` ran once via `Invoke-ArcTest.ps1` and exited 101. All 19 test binaries and the doc-test harness reported results: **966 passed, 26 failed, 45 ignored**, with **27 explicit `SKIPPED` entries across 17 test names**. Some entries cover individual test cases. The pass total is the raw harness count and includes tests that reported skips. Full output is in `L:\XclTooling\neon-slot-2\tmp\pr674-suite.log`. **Failures** - These 21 library tests failed in `CreateComputePipelineState` with `0x80070057` (invalid parameter). The four DXIL fuzz shards failed at seeds 2, 506, 1003 and 1501, respectively. - `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0` - `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1` - `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_2` - `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_3` - `gpu::dxil::ops_tests::doubles_match_cpu` - `gpu::dxil::ops_tests::groupshared_barrier_and_atomics_run` - `gpu::dxil::round_tests::gpu_direct_f32_round_modes_dynamic_and_denormals` - `gpu::dxil::round_tests::gpu_direct_f32_round_preserved_denormal_times_inf_is_inf` - `gpu::dxil::round_tests::gpu_direct_f32_round_modes_static` - `gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu` - `gpu::recomp::tests::gpu_clamp_and_omod_per_instruction` - `gpu::recomp::tests::gpu_f64_literal_high_word` - `gpu::recomp::tests::gpu_f64_compares_with_nan` - `gpu::recomp::tests::gpu_f64_class_compare` - `gpu::recomp::tests::gpu_f64_roots` - `gpu::recomp::tests::gpu_f64_rounding_and_conversions` - `gpu::recomp::tests::gpu_f64_math_random` - `gpu::recomp::tests::gpu_frexp_f64_exp_and_mant` - `gpu::recomp::tests::gpu_float_compares_random` - `gpu::recomp::tests::gpu_ldexp_f64` - `gpu::recomp::tests::gpu_rndne_f64` - `gpu::recomp::tests::gpu_nonfused_mad_and_mac_prevent_fma_contraction` failed the fused `v_fma_f32` overflow control assertion. - `gpu::recomp::tests::gpu_ps_image_sample_offset_implicit_lod_between_mips` read 25.609375 at pixel (0,0), expected 26. - `gpu::recomp::tests::gpu_valu_16_and_64_bit` failed the lane-0 `v_add_f16` high-half preservation assertion. - `gpu::recomp::tests::gpu_wave64_ps_whole_wave_reductions` read `[2, 217, 2]` at pixel 0, expected `[2, 216, 2]`. - `test_title_runs_and_game_folder_is_untouched` failed the `RSSetDepthBiasX(-1000.5)` check. The top-right pixel was blue where the depth test expected green. **Workspace `SKIPPED` entries** ```text SKIPPED gpu::recomp::lower::tests::a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower::tests::cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower::tests::coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower::tests::the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::a_per_lane_2d_or_3d_group_runs_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu: const_mask, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's)) SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 arithmetic, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 compares, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's)) SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's)) SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer arithmetic, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 rounding, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 transcendentals, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer carries, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 three-source, wave64: no wave64 SKIPPED gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64 SKIPPED gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64 SKIPPED hle::d3d12x::present::frame_dump_tests::triple_buffer_present_and_resize_drains_queue_cleanly: no swap chain SKIPPED shaders::tests::pso_measurement_compiles_an_exact_synthetic_record: cannot disable the driver cache (Windows Developer Mode is required): The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D) SKIPPED placed_title_textures_share_vram_and_preserve_pixels: tiled tier < 2 SKIPPED test_title_draws_with_a_root_signature_under_the_debug_layer: no d3d12SDKLayers.dll SKIPPED heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows SKIPPED uploads_start_from_each_subresources_state: no D3D12 debug layer (The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)) ``` **Not tested** - GPU presenter resizing and queue drain in a working swap chain, retail-title regression smoke runs, and real-title frame timing or present throughput. - A test run on `origin/main` to establish which failures reproduce on the baseline, AMD/NVIDIA adapters, and retail fixtures gated by `XCL_SAMPLE_*`. The sample variables were unset. **AI use** - T3 Code / Codex (`gpt-6.2-sol`) ran the build and tests, analyzed the logs, and drafted this report. Coordinator #2 (T3 Code / Antigravity, `gemini-4-neon`) verified the counts against `pr674-suite.log` and published this report.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 12:10 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: 1038 passed, 1 failed in one parallel run; the failing test passes on a single-threaded rerun (1039/0). Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 12:10 UTC · [original](https://github.com/xcl-dev/xcl/pull/674#issuecomment-7162021755) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: 1038 passed, 1 failed in one parallel run; the failing test passes on a single-threaded rerun (1039/0). Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun. Thanks!
Author
Owner

@⁠RandomGithub12309 on GitHub · 2026-11-25 22:08 UTC · original

Superseded as written by #1988, which pipelines PresentX on main. The post-Present fence fix remains in #711.

**@⁠RandomGithub12309** on GitHub · 2026-11-25 22:08 UTC · [original](https://github.com/xcl-dev/xcl/pull/674#issuecomment-7175984817) Superseded as written by #1988, which pipelines PresentX on main. The post-Present fence fix remains in #711.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.