D3D12.X: XCL_BACKGROUND_COMPILES=0 stops the driver's second compiles #1552

Open
github-bot wants to merge 1 commit from github-bot/gh-1552 into main AGit
Owner

@⁠Digit4w on GitHub · 2026-11-24 17:34 UTC · original
Digit4w:background-processing-off → main · +78 −0 · 4 files · 1 commits · open

XCL_BACKGROUND_COMPILES=0 turns the driver's background work off on the title's device and on the device of xcl shaders --pipelines. Part of #1269.

NVIDIA's driver compiles a compute pipeline a second time on D3D12's background threads once CreateComputePipelineState has returned: as long again, with the same memory. @⁠QemmHD saw that in #156, and that SetBackgroundProcessingMode(DISABLE_BACKGROUND_WORK) is refused with 0x887A002D. With Windows Developer Mode on the call is taken and the second compile is gone. Unset, nothing changes. Refused, the log says why and nothing changes.

What is in it

  • gpu/agility.rs: background_compiles_off(device) (the switch, the call, the reason of a refusal), with its tests in gpu/agility_tests.rs
  • hle/d3d12x/real.rs: the title's device, one log line
  • shaders.rs: the device of --pipelines, one line on stderr

Tested

  • RTX 4070 SUPER 12 GB (driver 32.0.16.2101), Ryzen 5 7600, 32 GB, Windows 11 26200 with Developer Mode on, rustc 1.100.0; tests debug, everything else release

  • cargo test --workspace --no-fail-fast -- --test-threads=4 (XCL_ADAPTER=nvidia) on e25f6d3, which is on main e1d84b7: 1426 passed, 0 failed, 46 ignored.

  • SKIPPED, 25 lines: 21 "no wave64", 3 f16 / f32 programs refused in the per-lane form (#1426), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).

  • The three new tests pass; the GPU one took the off-and-on path here.

  • The head before the rebase (035eead, the same change on an older main), xcl shaders <one translated CS> --precompile --only cs --pipelines with heap windows, cold driver cache, one process each:

    time printed process wall process CPU
    XCL_BACKGROUND_COMPILES=0 8.6 s 8.9 s 8.8 s
    unset (another program) 10.1 s 20.1 s 19.9 s
  • The same call as a local patch on 930e8b4, one translated CS per process (switch form): 146.7 s printed, 147.0 s wall and 145.6 s of CPU with background work off; another program with it on: 97.6 s printed, 199.2 s wall, 197.6 s of CPU. XCL_PSO_DISK_CACHE=0 (no GetCachedBlob) does not remove the second compile.

  • The same local patch in a retail title's loading up to its world start, XCL's driver cache off (XCL_PSO_DISK_CACHE=0) and the driver's own cache cold, two runs each way in the order off, on, on, off. The fresh compute pipelines of two runs paired by DXIL size, time of the first over the second:

    runs pairs median ratio from 100 KB of DXIL
    on / off 150 1.17 1.32 (27 pairs)
    on / off 144 1.19 1.26 (26 pairs)
    on / on 143 1.00 1.01 (25 pairs)
    off / off 152 0.98 0.98 (29 pairs)

    The process used 4.29 and 4.45 cores up to the world's start with background work on, 3.57 and 3.58 with it off. A program of 994 844 B of DXIL finished before the title's watchdog only with it off (66 s and 68 s). The title stopped at the same place in all four runs: this does not get it past the world's start.

Regression run

All three through the same script, 60 s, with XCL_ADAPTER=nvidia XCL_NETWORK=0 XCL_TRACE_FAULTS=1 XCL_FRAME_DUMP=300 and A pressed at 14, 17 and 21 s.

main:

xcl-smoke v1
commit: e1d84b7d9153f86a97d2ec5d209d196046fc0bea
gpu: NVIDIA GeForce RTX 4070 SUPER
title: 2c508222
seconds: 60
exit: 0x0
frames shown: 1228 (PresentX 1228)
presents per 2 s (last 3): 25 0 4
device removals: 0
crashes: 0
peak commit: 21352 MB

this PR's head:

xcl-smoke v1
commit: e25f6d3a94e888e27413a7c621483f3e40781c8d
gpu: NVIDIA GeForce RTX 4070 SUPER
title: 2c508222
seconds: 60
exit: 0x0
frames shown: 1168 (PresentX 1169)
presents per 2 s (last 3): 2 3 2
device removals: 0
crashes: 0
peak commit: 22210 MB

this PR's head with XCL_BACKGROUND_COMPILES=0 (its log: D3D12: the driver's background compiles are off (XCL_BACKGROUND_COMPILES=0)):

xcl-smoke v1
commit: e25f6d3a94e888e27413a7c621483f3e40781c8d
gpu: NVIDIA GeForce RTX 4070 SUPER
title: 2c508222
seconds: 60
exit: 0x0
frames shown: 1255 (PresentX 1256)
presents per 2 s (last 3): 1 2 0
device removals: 0
crashes: 0
peak commit: 23627 MB

Not tested

  • AMD and Intel GPUs: whether their drivers do such a second compile at all.
  • A machine without Developer Mode on this commit: the refusal is covered by the unit test of its message. The call itself returned 0x887A002D here with the local patch, before Developer Mode was turned on.
  • What the driver's second compile gains at run time (GPU time of the pipelines): the reason this is a switch and not the default.
  • Graphics pipelines: the log times compute pipelines only.
  • The measurements above on e1d84b7: they were made before the rebase and not repeated.
  • Whether the 60 s regression runs reach the world's compute pipelines: not checked.

AI use

  • Claude Code with Claude Fable 5.2 wrote the code, the tests and this description, and drove the runs on my machine.

🤖 Generated with Claude Code

**@⁠Digit4w** on GitHub · 2026-11-24 17:34 UTC · [original](https://github.com/xcl-dev/xcl/pull/1552) `Digit4w:background-processing-off` → `main` · +78 −0 · 4 files · 1 commits · open `XCL_BACKGROUND_COMPILES=0` turns the driver's background work off on the title's device and on the device of `xcl shaders --pipelines`. Part of #1269. NVIDIA's driver compiles a compute pipeline a second time on D3D12's background threads once `CreateComputePipelineState` has returned: as long again, with the same memory. @⁠QemmHD saw that in #156, and that `SetBackgroundProcessingMode(DISABLE_BACKGROUND_WORK)` is refused with `0x887A002D`. With Windows Developer Mode on the call is taken and the second compile is gone. Unset, nothing changes. Refused, the log says why and nothing changes. **What is in it** - `gpu/agility.rs`: `background_compiles_off(device)` (the switch, the call, the reason of a refusal), with its tests in `gpu/agility_tests.rs` - `hle/d3d12x/real.rs`: the title's device, one log line - `shaders.rs`: the device of `--pipelines`, one line on stderr **Tested** - RTX 4070 SUPER 12 GB (driver 32.0.16.2101), Ryzen 5 7600, 32 GB, Windows 11 26200 with Developer Mode on, rustc 1.100.0; tests debug, everything else release - `cargo test --workspace --no-fail-fast -- --test-threads=4` (`XCL_ADAPTER=nvidia`) on `e25f6d3`, which is on `main` `e1d84b7`: 1426 passed, 0 failed, 46 ignored. - SKIPPED, 25 lines: 21 "no wave64", 3 f16 / f32 programs refused in the per-lane form (#1426), `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). - The three new tests pass; the GPU one took the off-and-on path here. - The head before the rebase (`035eead`, the same change on an older `main`), `xcl shaders <one translated CS> --precompile --only cs --pipelines` with heap windows, cold driver cache, one process each: | | time printed | process wall | process CPU | |---|---|---|---| | `XCL_BACKGROUND_COMPILES=0` | 8.6 s | 8.9 s | 8.8 s | | unset (another program) | 10.1 s | 20.1 s | 19.9 s | - The same call as a local patch on `930e8b4`, one translated CS per process (switch form): 146.7 s printed, 147.0 s wall and 145.6 s of CPU with background work off; another program with it on: 97.6 s printed, 199.2 s wall, 197.6 s of CPU. `XCL_PSO_DISK_CACHE=0` (no `GetCachedBlob`) does not remove the second compile. - The same local patch in a retail title's loading up to its world start, XCL's driver cache off (`XCL_PSO_DISK_CACHE=0`) and the driver's own cache cold, two runs each way in the order off, on, on, off. The fresh compute pipelines of two runs paired by DXIL size, time of the first over the second: | runs | pairs | median ratio | from 100 KB of DXIL | |---|---|---|---| | on / off | 150 | 1.17 | 1.32 (27 pairs) | | on / off | 144 | 1.19 | 1.26 (26 pairs) | | on / on | 143 | 1.00 | 1.01 (25 pairs) | | off / off | 152 | 0.98 | 0.98 (29 pairs) | The process used 4.29 and 4.45 cores up to the world's start with background work on, 3.57 and 3.58 with it off. A program of 994 844 B of DXIL finished before the title's watchdog only with it off (66 s and 68 s). The title stopped at the same place in all four runs: this does not get it past the world's start. **Regression run** All three through the same script, 60 s, with `XCL_ADAPTER=nvidia XCL_NETWORK=0 XCL_TRACE_FAULTS=1 XCL_FRAME_DUMP=300` and A pressed at 14, 17 and 21 s. main: ``` xcl-smoke v1 commit: e1d84b7d9153f86a97d2ec5d209d196046fc0bea gpu: NVIDIA GeForce RTX 4070 SUPER title: 2c508222 seconds: 60 exit: 0x0 frames shown: 1228 (PresentX 1228) presents per 2 s (last 3): 25 0 4 device removals: 0 crashes: 0 peak commit: 21352 MB ``` this PR's head: ``` xcl-smoke v1 commit: e25f6d3a94e888e27413a7c621483f3e40781c8d gpu: NVIDIA GeForce RTX 4070 SUPER title: 2c508222 seconds: 60 exit: 0x0 frames shown: 1168 (PresentX 1169) presents per 2 s (last 3): 2 3 2 device removals: 0 crashes: 0 peak commit: 22210 MB ``` this PR's head with `XCL_BACKGROUND_COMPILES=0` (its log: `D3D12: the driver's background compiles are off (XCL_BACKGROUND_COMPILES=0)`): ``` xcl-smoke v1 commit: e25f6d3a94e888e27413a7c621483f3e40781c8d gpu: NVIDIA GeForce RTX 4070 SUPER title: 2c508222 seconds: 60 exit: 0x0 frames shown: 1255 (PresentX 1256) presents per 2 s (last 3): 1 2 0 device removals: 0 crashes: 0 peak commit: 23627 MB ``` **Not tested** - AMD and Intel GPUs: whether their drivers do such a second compile at all. - A machine without Developer Mode on this commit: the refusal is covered by the unit test of its message. The call itself returned `0x887A002D` here with the local patch, before Developer Mode was turned on. - What the driver's second compile gains at run time (GPU time of the pipelines): the reason this is a switch and not the default. - Graphics pipelines: the log times compute pipelines only. - The measurements above on `e1d84b7`: they were made before the rebase and not repeated. - Whether the 60 s regression runs reach the world's compute pipelines: not checked. **AI use** - Claude Code with Claude Fable 5.2 wrote the code, the tests and this description, and drove the runs on my machine. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
NVIDIA's driver compiles a compute pipeline a second time on D3D12's
background threads once CreateComputePipelineState has returned (seen in
#156): as long again and with the same memory. At a retail title's world
loading that runs next to the cold compiles the title is waiting for.

With XCL_BACKGROUND_COMPILES=0 the title's device and the device of
`xcl shaders --pipelines` get SetBackgroundProcessingMode(
DISABLE_BACKGROUND_WORK). Windows takes that in Developer Mode only
(0x887a002d without it): the log says so and the driver goes on as before.
Unset, nothing changes: what the second compile gains at run time is not
measured.

Measured with this call on 930e8b4, RTX 4070 SUPER, cold driver cache:
- one translated CS per process: 147 s in the call and 146 s of CPU with
  background work off; another, 98 s in the call and 198 s of CPU with it on;
- a retail title's loading, two runs each way, the same pipelines paired by
  DXIL size: with background work on a pipeline takes 1.17x / 1.19x as long
  (median; 1.32x / 1.26x from 100 KB of DXIL; a setting against itself:
  1.00 / 0.98) and the process uses 4.3 - 4.5 cores against 3.6 up to the
  world's start.
The title stops at the same place either way.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:57:17 +00:00
Author
Owner

@⁠lows78 on GitHub · 2026-11-24 18:08 UTC · original

Test report for #1552 at 7a92dcdf8c5a599e819f6fc5d5d165505ed43c57 (clean tree), on an RTX 4090 without Developer Mode, which the description lists as not tested on this commit. I am not a graphics developer: Claude Code ran this on my PC, and I can rerun things if that helps.

Tested

  • NVIDIA GeForce RTX 4090 (driver 621.01, 32-lane waves), Intel Core i9-14900KF, 32 GB RAM, Windows 11 Pro 10.0.26200, inbox D3D12 (no Agility SDK), rustc 1.99.1 MSVC, DXC 1.8.2502.11, debug. XCL_SAMPLE_* unset.
  • cargo build --workspace && cargo test --workspace -- --test-threads=4:
    • main 9e3831e, one run: 776 passed, 0 failed, 41 ignored
    • this PR, two runs: 779 passed, 0 failed, 41 ignored in each
    • this PR with XCL_BACKGROUND_COMPILES=0, one run: 779 passed, 0 failed, 41 ignored
    • coherent_buffer_sanitizes_console_flags_and_state did not fail in any of these runs
  • SKIPPED, the same three in all four runs: gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware (no wave64), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows)
  • The PR's three tests pass. gpu_background_work_is_turned_off_and_on_again took the refusal path here: not taken here: Windows takes it in Developer Mode only (0x887a002d)
  • The repository's test title (xcl run <testgame> -- --hello), one run each with the variable unset, 0 and 1: exit 0, failures: 0, no [FAIL] line in all three. Only 0 logs a line:
    [WARN ] D3D12: XCL_BACKGROUND_COMPILES=0 was not taken, the driver's background compiles stay on: Windows takes it in Developer Mode only (0x887a002d)
    

Not tested

  • The switch actually taken (Developer Mode on), so no timing of the second compile
  • xcl shaders --pipelines, retail titles (no smoke.ps1 run), release builds, AMD, Intel

AI use

  • Claude Code, Claude Opus 5.5: ran the builds and tests and wrote this report
**@⁠lows78** on GitHub · 2026-11-24 18:08 UTC · [original](https://github.com/xcl-dev/xcl/pull/1552#issuecomment-7140204837) Test report for #1552 at `7a92dcdf8c5a599e819f6fc5d5d165505ed43c57` (clean tree), on an RTX 4090 **without Developer Mode**, which the description lists as not tested on this commit. I am not a graphics developer: Claude Code ran this on my PC, and I can rerun things if that helps. **Tested** - NVIDIA GeForce RTX 4090 (driver 621.01, 32-lane waves), Intel Core i9-14900KF, 32 GB RAM, Windows 11 Pro 10.0.26200, inbox D3D12 (no Agility SDK), rustc 1.99.1 MSVC, DXC 1.8.2502.11, debug. `XCL_SAMPLE_*` unset. - `cargo build --workspace && cargo test --workspace -- --test-threads=4`: - `main` `9e3831e`, one run: 776 passed, 0 failed, 41 ignored - this PR, two runs: 779 passed, 0 failed, 41 ignored in each - this PR with `XCL_BACKGROUND_COMPILES=0`, one run: 779 passed, 0 failed, 41 ignored - `coherent_buffer_sanitizes_console_flags_and_state` did not fail in any of these runs - SKIPPED, the same three in all four runs: `gpu_geometry_wave32_prefix_count_over_a_mask` and `gpu_wave32_program_in_wave64_hardware` (no wave64), `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows) - The PR's three tests pass. `gpu_background_work_is_turned_off_and_on_again` took the refusal path here: `not taken here: Windows takes it in Developer Mode only (0x887a002d)` - The repository's test title (`xcl run <testgame> -- --hello`), one run each with the variable unset, `0` and `1`: exit 0, `failures: 0`, no `[FAIL]` line in all three. Only `0` logs a line: ``` [WARN ] D3D12: XCL_BACKGROUND_COMPILES=0 was not taken, the driver's background compiles stay on: Windows takes it in Developer Mode only (0x887a002d) ``` **Not tested** - The switch actually taken (Developer Mode on), so no timing of the second compile - `xcl shaders --pipelines`, retail titles (no `smoke.ps1` run), release builds, AMD, Intel **AI use** - Claude Code, Claude Opus 5.5: ran the builds and tests and wrote this report
Author
Owner

@⁠MatyEjsr on GitHub · 2026-11-24 18:25 UTC · original · edited 2026-11-26 12:43 UTC

Updated verification of #1552 at e25f6d3a94e888e27413a7c621483f3e40781c8d (clean tree) on NVIDIA Ampere, with Developer Mode on. This replaces the earlier report on 7a92dcd. git range-diff shows the same code rebased onto e1d84b7; the only change is a removed trailer in the commit message. It also merges cleanly onto current main (b49be18), and the PR is still open at this head. Nothing in the replies since my earlier report asked for a further check on this commit; the Developer Mode refusal path was covered on AMD at an earlier head and is still not re-run here.

Tested

  • Windows 11 Pro for Workstations 26200.7171 with Developer Mode on, Ryzen 7 7800X3D, 31.4 GB RAM, RTX 3090 24 GB (driver 617.42, wave32), rustc 1.100.0 MSVC, DXC 1.9.2602.17, debug build for the tests, release build for the smoke runs. XCL_SAMPLE_* unset.
  • cargo test --workspace -j 8 --no-fail-fast -- --test-threads=8: 1426 passed, 0 failed, 46 ignored
  • the same with XCL_BACKGROUND_COMPILES=0: 1426 passed, 0 failed, 46 ignored. Every device the suite creates through real::init logged the driver's background compiles are off (16 times), with no refusal.
  • cargo test -p xcl --lib gpu::agility::tests -- --nocapture --test-threads=1: 11 passed. gpu_background_work_is_turned_off_and_on_again took the off-then-on Ok path.
  • e2e test_title_runs_and_game_folder_is_untouched with XCL_BACKGROUND_COMPILES=0: passed, and logged the "off" line.
  • SKIPPED, the same 28 lines in both suite runs:
    • no wave64: 21 (native-wave64 cases in gpu::dxil::kernel, gpu::recomp::lower, lower_dxil, gpu::recomp::tests)
    • wave32 per-lane form refused: 3 (f16 arithmetic, f16 packed, f32 conversions)
    • no heap windows: 1
    • no d3d12SDKLayers.dll or no debug layer: 3

Regression run (retail title, 60 s, release; main = this PR's merge base)

xcl-smoke v1
commit: e1d84b7d9153f86a97d2ec5d209d196046fc0bea
gpu: NVIDIA GeForce RTX 3090
title: c1cc91a4
seconds: 60
exit: 0x0
frames shown: 1598 (PresentX 1598)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14050 MB
xcl-smoke v1
commit: e25f6d3a94e888e27413a7c621483f3e40781c8d
gpu: NVIDIA GeForce RTX 3090
title: c1cc91a4
seconds: 60
exit: 0x0
frames shown: 1583 (PresentX 1583)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 14070 MB

The PR head with XCL_BACKGROUND_COMPILES=0 (the switch is accepted on a title: D3D12: the driver's background compiles are off (XCL_BACKGROUND_COMPILES=0) at 0.445 s):

xcl-smoke v1
commit: e25f6d3a94e888e27413a7c621483f3e40781c8d
gpu: NVIDIA GeForce RTX 3090
title: c1cc91a4
seconds: 60
exit: 0x0
frames shown: 1606 (PresentX 1606)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 13992 MB

Head against base: 99.1 % of the frames and 100.1 % of the peak commit with the switch unset, and 100.5 % / 99.6 % with =0. The video memory at the end is the same in all three runs (6125 MB local).

Not tested

  • Cold compile timing with background work on against off. In all three runs the DXIL and driver caches were warm and each case ran once, so these runs say nothing about the second compile's cost.
  • Developer Mode off on this machine (the refusal path was covered by other reports at earlier heads)
  • xcl shaders --pipelines on this head (checked at 7a92dcd)
  • AMD, Intel, native wave64, the D3D12 debug-layer tests, nvidia-dev

AI use

  • Antigravity (agy) with claude-opus-5-5-high (audited by claude-sonnet-5-5-medium) ran the builds, tests and smoke runs, compared the new head with the earlier one, and wrote this report from the command output. The auditor re-checked that the PR is open, mergeable, and still at this head, and edited the note.
**@⁠MatyEjsr** on GitHub · 2026-11-24 18:25 UTC · [original](https://github.com/xcl-dev/xcl/pull/1552#issuecomment-7140623850) · edited 2026-11-26 12:43 UTC Updated verification of #1552 at `e25f6d3a94e888e27413a7c621483f3e40781c8d` (clean tree) on NVIDIA Ampere, with Developer Mode on. This replaces the earlier report on `7a92dcd`. `git range-diff` shows the same code rebased onto `e1d84b7`; the only change is a removed trailer in the commit message. It also merges cleanly onto current `main` (`b49be18`), and the PR is still open at this head. Nothing in the replies since my earlier report asked for a further check on this commit; the Developer Mode refusal path was covered on AMD at an earlier head and is still not re-run here. **Tested** - Windows 11 Pro for Workstations 26200.7171 with Developer Mode on, Ryzen 7 7800X3D, 31.4 GB RAM, RTX 3090 24 GB (driver 617.42, wave32), rustc 1.100.0 MSVC, DXC 1.9.2602.17, debug build for the tests, release build for the smoke runs. `XCL_SAMPLE_*` unset. - `cargo test --workspace -j 8 --no-fail-fast -- --test-threads=8`: **1426 passed, 0 failed, 46 ignored** - the same with `XCL_BACKGROUND_COMPILES=0`: **1426 passed, 0 failed, 46 ignored**. Every device the suite creates through `real::init` logged `the driver's background compiles are off` (16 times), with no refusal. - `cargo test -p xcl --lib gpu::agility::tests -- --nocapture --test-threads=1`: 11 passed. `gpu_background_work_is_turned_off_and_on_again` took the off-then-on `Ok` path. - `e2e` `test_title_runs_and_game_folder_is_untouched` with `XCL_BACKGROUND_COMPILES=0`: passed, and logged the "off" line. - SKIPPED, the same 28 lines in both suite runs: - no wave64: 21 (native-wave64 cases in `gpu::dxil::kernel`, `gpu::recomp::lower`, `lower_dxil`, `gpu::recomp::tests`) - wave32 per-lane form refused: 3 (f16 arithmetic, f16 packed, f32 conversions) - no heap windows: 1 - no `d3d12SDKLayers.dll` or no debug layer: 3 **Regression run** (retail title, 60 s, release; `main` = this PR's merge base) ``` xcl-smoke v1 commit: e1d84b7d9153f86a97d2ec5d209d196046fc0bea gpu: NVIDIA GeForce RTX 3090 title: c1cc91a4 seconds: 60 exit: 0x0 frames shown: 1598 (PresentX 1598) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14050 MB ``` ``` xcl-smoke v1 commit: e25f6d3a94e888e27413a7c621483f3e40781c8d gpu: NVIDIA GeForce RTX 3090 title: c1cc91a4 seconds: 60 exit: 0x0 frames shown: 1583 (PresentX 1583) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 14070 MB ``` The PR head with `XCL_BACKGROUND_COMPILES=0` (the switch is accepted on a title: `D3D12: the driver's background compiles are off (XCL_BACKGROUND_COMPILES=0)` at 0.445 s): ``` xcl-smoke v1 commit: e25f6d3a94e888e27413a7c621483f3e40781c8d gpu: NVIDIA GeForce RTX 3090 title: c1cc91a4 seconds: 60 exit: 0x0 frames shown: 1606 (PresentX 1606) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13992 MB ``` Head against base: 99.1 % of the frames and 100.1 % of the peak commit with the switch unset, and 100.5 % / 99.6 % with `=0`. The video memory at the end is the same in all three runs (6125 MB local). **Not tested** - Cold compile timing with background work on against off. In all three runs the DXIL and driver caches were warm and each case ran once, so these runs say nothing about the second compile's cost. - Developer Mode off on this machine (the refusal path was covered by other reports at earlier heads) - `xcl shaders --pipelines` on this head (checked at `7a92dcd`) - AMD, Intel, native wave64, the D3D12 debug-layer tests, `nvidia-dev` **AI use** - Antigravity (agy) with claude-opus-5-5-high (audited by claude-sonnet-5-5-medium) ran the builds, tests and smoke runs, compared the new head with the earlier one, and wrote this report from the command output. The auditor re-checked that the PR is open, mergeable, and still at this head, and edited the note.
Author
Owner

@⁠nnonno91 on GitHub · 2026-11-24 18:26 UTC · original

Independent AMD check of the Developer Mode refusal at 035eead87a265cd8f5b9686c542179fedd4d8860.

Tested

  • Windows 11 25H2 (26200.9974), Developer Mode off, Ryzen 7 9800X3D, AMD Radeon(TM) Graphics (32.0.21042.62), Rust 1.100.0 MSVC, DXC 1.8.2502.11, debug. XCL_ADAPTER='AMD Radeon'.
  • cargo build --workspace --locked passed. cargo test --locked -p xcl --lib -- background_compiles developer_mode gpu_background_work --test-threads=1 --nocapture passed all three tests. The device test printed the Developer Mode refusal 0x887a002d.
  • cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --show-output reported 779 passed, 0 failed, 41 ignored, and one GPU skip (heap_window_out_of_memory_falls_back_to_the_switch_form, no heap windows).
  • cargo test --locked -p xcl --test background_switch_probe -- --exact background_switch_reaches_the_shader_cli --nocapture --test-threads=1 (temporary probe) called xcl shaders <synthetic folder> --precompile --pipelines in two subprocesses sharing the same shader input and using separate XCL caches with XCL_PSO_DISK_CACHE=0. Each made one pipeline and refused zero. With XCL_BACKGROUND_COMPILES unset there was no status line. Setting it to 0 produced the Developer Mode refusal 0x887a002d once on stderr.
  • cargo test --locked -p xcl --test e2e -- --exact test_title_runs_and_game_folder_is_untouched --nocapture --test-threads=1 passed in separate runs with the switch unset and set to 0. The bundled title used the real AMD backend and finished both runs. Only the 0 run logged the Developer Mode refusal.

Not tested

Developer Mode enabled on AMD, actual background compilation or performance, and retail titles.

AI use

OpenAI Codex (GPT-6 family, exact variant unavailable) wrote the temporary CLI probe, ran the checks, and drafted this report.

**@⁠nnonno91** on GitHub · 2026-11-24 18:26 UTC · [original](https://github.com/xcl-dev/xcl/pull/1552#issuecomment-7140657609) Independent AMD check of the Developer Mode refusal at `035eead87a265cd8f5b9686c542179fedd4d8860`. **Tested** - Windows 11 25H2 (26200.9974), Developer Mode off, Ryzen 7 9800X3D, AMD Radeon(TM) Graphics (32.0.21042.62), Rust 1.100.0 MSVC, DXC 1.8.2502.11, debug. `XCL_ADAPTER='AMD Radeon'`. - `cargo build --workspace --locked` passed. `cargo test --locked -p xcl --lib -- background_compiles developer_mode gpu_background_work --test-threads=1 --nocapture` passed all three tests. The device test printed the Developer Mode refusal `0x887a002d`. - `cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --show-output` reported 779 passed, 0 failed, 41 ignored, and one GPU skip (`heap_window_out_of_memory_falls_back_to_the_switch_form`, no heap windows). - `cargo test --locked -p xcl --test background_switch_probe -- --exact background_switch_reaches_the_shader_cli --nocapture --test-threads=1` (temporary probe) called `xcl shaders <synthetic folder> --precompile --pipelines` in two subprocesses sharing the same shader input and using separate XCL caches with `XCL_PSO_DISK_CACHE=0`. Each made one pipeline and refused zero. With `XCL_BACKGROUND_COMPILES` unset there was no status line. Setting it to `0` produced the Developer Mode refusal `0x887a002d` once on stderr. - `cargo test --locked -p xcl --test e2e -- --exact test_title_runs_and_game_folder_is_untouched --nocapture --test-threads=1` passed in separate runs with the switch unset and set to `0`. The bundled title used the real AMD backend and finished both runs. Only the `0` run logged the Developer Mode refusal. **Not tested** Developer Mode enabled on AMD, actual background compilation or performance, and retail titles. **AI use** OpenAI Codex (GPT-6 family, exact variant unavailable) wrote the temporary CLI probe, ran the checks, and drafted this report.
Author
Owner

@⁠Aniseto on GitHub · 2026-11-24 18:01 UTC · original · edited 2026-11-24 18:28 UTC

Ran the three new tests at 035eead (re-run after the head moved from 7a92dcd):

Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC 14.44.35207, DXC 1.9.2609.5, debug build.

XCL_ADAPTER=nvidia cargo test -p xcl --lib background_compiles
1 passed; 0 failed    (background_compiles_are_turned_off_by_0_only)

XCL_ADAPTER=nvidia cargo test -p xcl --lib developer_mode
1 passed; 0 failed    (a_refusal_for_developer_mode_says_so)

XCL_ADAPTER=nvidia cargo test -p xcl --lib gpu_background_work
1 passed; 0 failed    (gpu_background_work_is_turned_off_and_on_again)

All three still pass on the new head. gpu_background_work_is_turned_off_and_on_again touches the real device (0.48 s on this run); the other two are parsing and logging checks.

Not tested: a title run with the switch flipped (no unpacked title here), RDNA2/RDNA4 and Intel GPUs, Wine, release profile, native wave64.

AI-assisted (OpenCode), model: DeepSeek V4.1 Flash 1017 - built the PR's head commit from a clean tree and ran the tests on this machine; no local changes were made.

**@⁠Aniseto** on GitHub · 2026-11-24 18:01 UTC · [original](https://github.com/xcl-dev/xcl/pull/1552#issuecomment-7140054880) · edited 2026-11-24 18:28 UTC Ran the three new tests at `035eead` (re-run after the head moved from `7a92dcd`): Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC 14.44.35207, DXC 1.9.2609.5, debug build. ``` XCL_ADAPTER=nvidia cargo test -p xcl --lib background_compiles 1 passed; 0 failed (background_compiles_are_turned_off_by_0_only) XCL_ADAPTER=nvidia cargo test -p xcl --lib developer_mode 1 passed; 0 failed (a_refusal_for_developer_mode_says_so) XCL_ADAPTER=nvidia cargo test -p xcl --lib gpu_background_work 1 passed; 0 failed (gpu_background_work_is_turned_off_and_on_again) ``` All three still pass on the new head. `gpu_background_work_is_turned_off_and_on_again` touches the real device (0.48 s on this run); the other two are parsing and logging checks. Not tested: a title run with the switch flipped (no unpacked title here), RDNA2/RDNA4 and Intel GPUs, Wine, release profile, native wave64. AI-assisted (OpenCode), model: **DeepSeek V4.1 Flash 1017** - built the PR's head commit from a clean tree and ran the tests on this machine; no local changes were made.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 19:19 UTC · original

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

  • cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored.

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-24 19:19 UTC · [original](https://github.com/xcl-dev/xcl/pull/1552#issuecomment-7141925536) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~21 ignored. Thanks!
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-26 05:48 UTC · original

Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.

Thanks!

— Devin

**@⁠DavidM1911** on GitHub · 2026-11-26 05:48 UTC · [original](https://github.com/xcl-dev/xcl/pull/1552#issuecomment-7183821304) Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved. Thanks! — Devin
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1552/head:github-bot/gh-1552'
git switch 'github-bot/gh-1552'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1552'
git switch 'github-bot/gh-1552'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1552'
git switch 'github-bot/gh-1552'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1552'
git switch 'main'
git merge --squash 'github-bot/gh-1552'
git switch 'main'
git merge --ff-only 'github-bot/gh-1552'
git switch 'main'
git merge 'github-bot/gh-1552'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.