Shaders: share compiled DXIL across pipeline builds #2085

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

@⁠rison1337 on GitHub · 2026-11-25 03:33 UTC · original
rison1337:perf/share-compiled-dxil → main · +34 −19 · 3 files · 1 commits · open

The translated shader cache already owns an Arc<Compiled>, but the public console-to-DXIL functions clone its DXIL and samplers for each request. Return the shared owner and keep it alive while the driver consumes the bytecode.

What is in it

  • Return Arc<Compiled> from the translation entry points; borrow bytecode at compute/graphics pipeline creation, preserving sampler and two-pass pixel-shader ownership.
  • Check that repeated public requests reuse the same DXIL buffer without changing its contents.
  • Adapt the four integration-test accesses in console_shaders.rs to borrow the shared bytecode.

Tested

  • Ryzen 5 7500F, RTX 4060 8 GB, NVIDIA 615.78.08, CachyOS Linux, rustc 1.99.1. Windows x86_64-pc-windows-gnullvm cross-build; debug tests and release runtime under Proton Experimental, DXC 1.9.2609.5, local vkd3d-proton compatibility build.
  • Entire library executable on clean head 529d13f557a1, built with cargo test --locked --target x86_64-pc-windows-gnullvm -p xcl --lib --no-run, executed through the local Proton runner with --test-threads=4: 1097 passed, 2 failed, 26 ignored; 24 explicit SKIPPED messages.
  • Fresh main 568e7db7729c, same environment: 1096 passed, 2 failed, 26 ignored; 24 explicit SKIPPED messages. Both fail gpu_depth_buffer_created_for_unordered_access_is_placed and xma2_source_voice_decodes_and_manages_lifetime. Skips include hardware wave64 and Windows Developer Mode. No complete green suite is claimed.
  • The shared-buffer regression test passed within the library run. Before rebasing, the retail VS/PS PSO-hook test on e56e7f57b430 passed: 435 inside / 3501 outside pixels. This historical GPU result is not a rerun on the current head.
  • The small repeated-request benchmark stayed within measurement noise; no title loading-time or FPS benefit is established.
  • Independent reports on the older e56e7f57b430 revision: Windows DXC sharing test, 1 passed, Windows paired title regression. These are contributor-reported results, not tests run by this author or validation of the current head.

Regression run

Generated by the unchanged scripts/smoke.ps1 using PowerShell 7.7.0 on Linux and a shell wrapper executing the EXE through Proton. Z: is mapped for Windows log paths. Same title, profile copy, 90 seconds, XCL_PSO_PRELOAD=0, no automatic input; a background Xwayland surface. Coverage is startup/start screen/menu.

xcl-smoke v1
commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb
gpu: NVIDIA GeForce RTX 4060
title: 6ca5cab7
seconds: 90
exit: 0x0
frames shown: 1828 (PresentX 1828)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 0 MB
xcl-smoke v1
commit: 529d13f557a1619813b1220e70c97a534320decd
gpu: NVIDIA GeForce RTX 4060
title: 6ca5cab7
seconds: 90
exit: 0x0
frames shown: 1854 (PresentX 1854)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 0 MB

Both exited without recorded crashes or device removals. The existing queue-drain warning may appear at shutdown. Wine reports 0 MB for process commit, so these counters do not establish the memory-growth comparison.

Not tested

  • Current-head native Windows, AMD and hardware wave64.
  • A green complete workspace GPU suite; the two library failures reproduce on main. Integration compilation and execution of the final dependent stack are documented in those PRs.
  • World loading, gameplay performance and reliable process commit accounting under Wine.

AI use

Codex (gpt-6.1-sol, as recorded for the initial implementation) prepared the initial code and tests. Codex (GPT-6 family; exact variant unavailable in this session) fixed the four integration-test borrows, rebased, cross-built, ran the Linux/Proton checks and updated this description. No game data or console SDK headers are included.

**@⁠rison1337** on GitHub · 2026-11-25 03:33 UTC · [original](https://github.com/xcl-dev/xcl/pull/2085) `rison1337:perf/share-compiled-dxil` → `main` · +34 −19 · 3 files · 1 commits · open The translated shader cache already owns an `Arc<Compiled>`, but the public console-to-DXIL functions clone its DXIL and samplers for each request. Return the shared owner and keep it alive while the driver consumes the bytecode. **What is in it** - Return `Arc<Compiled>` from the translation entry points; borrow bytecode at compute/graphics pipeline creation, preserving sampler and two-pass pixel-shader ownership. - Check that repeated public requests reuse the same DXIL buffer without changing its contents. - Adapt the four integration-test accesses in `console_shaders.rs` to borrow the shared bytecode. **Tested** - Ryzen 5 7500F, RTX 4060 8 GB, NVIDIA 615.78.08, CachyOS Linux, rustc 1.99.1. Windows `x86_64-pc-windows-gnullvm` cross-build; debug tests and release runtime under Proton Experimental, DXC 1.9.2609.5, local vkd3d-proton compatibility build. - Entire library executable on clean head `529d13f557a1`, built with `cargo test --locked --target x86_64-pc-windows-gnullvm -p xcl --lib --no-run`, executed through the local Proton runner with `--test-threads=4`: **1097 passed, 2 failed, 26 ignored; 24 explicit SKIPPED messages**. - Fresh main `568e7db7729c`, same environment: **1096 passed, 2 failed, 26 ignored; 24 explicit SKIPPED messages**. Both fail `gpu_depth_buffer_created_for_unordered_access_is_placed` and `xma2_source_voice_decodes_and_manages_lifetime`. Skips include hardware wave64 and Windows Developer Mode. No complete green suite is claimed. - The shared-buffer regression test passed within the library run. Before rebasing, the retail VS/PS PSO-hook test on `e56e7f57b430` passed: 435 inside / 3501 outside pixels. This historical GPU result is not a rerun on the current head. - The small repeated-request benchmark stayed within measurement noise; no title loading-time or FPS benefit is established. - Independent reports on the older `e56e7f57b430` revision: [Windows DXC sharing test, 1 passed](https://git.gtahub.st/github/xcl-dev--xcl/pulls/2085), [Windows paired title regression](https://git.gtahub.st/github/xcl-dev--xcl/pulls/2085). These are contributor-reported results, not tests run by this author or validation of the current head. **Regression run** Generated by the unchanged `scripts/smoke.ps1` using PowerShell 7.7.0 on Linux and a shell wrapper executing the EXE through Proton. `Z:` is mapped for Windows log paths. Same title, profile copy, 90 seconds, `XCL_PSO_PRELOAD=0`, no automatic input; a background Xwayland surface. Coverage is startup/start screen/menu. ``` xcl-smoke v1 commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb gpu: NVIDIA GeForce RTX 4060 title: 6ca5cab7 seconds: 90 exit: 0x0 frames shown: 1828 (PresentX 1828) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 0 MB ``` ``` xcl-smoke v1 commit: 529d13f557a1619813b1220e70c97a534320decd gpu: NVIDIA GeForce RTX 4060 title: 6ca5cab7 seconds: 90 exit: 0x0 frames shown: 1854 (PresentX 1854) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 0 MB ``` Both exited without recorded crashes or device removals. The existing queue-drain warning may appear at shutdown. Wine reports 0 MB for process commit, so these counters do not establish the memory-growth comparison. **Not tested** - Current-head native Windows, AMD and hardware wave64. - A green complete workspace GPU suite; the two library failures reproduce on main. Integration compilation and execution of the final dependent stack are documented in those PRs. - World loading, gameplay performance and reliable process commit accounting under Wine. **AI use** Codex (gpt-6.1-sol, as recorded for the initial implementation) prepared the initial code and tests. Codex (GPT-6 family; exact variant unavailable in this session) fixed the four integration-test borrows, rebased, cross-built, ran the Linux/Proton checks and updated this description. No game data or console SDK headers are included.
Return the cached Arc<Compiled> to pipeline builders so repeated shader requests reuse the compiled storage. Keep the VS and PS owners alive while the driver consumes their bytecode.

Assisted-by: Codex (gpt-6.1-sol)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:18:14 +00:00
Author
Owner

@⁠JJAutoCompare on GitHub · 2026-11-25 03:42 UTC · original

PR #2085 native Windows compatibility check

Tested

  • PR #2085 was open at e56e7f57b430e9e30a173f59d2cfbd1f1941f647 before and after the run. The assigned checkout was clean and detached at that SHA both times. The PR description reports Wine testing, and the live discussion contained no independent native Windows report for this head.
  • STOR-WINLAB, Windows 11 Enterprise Evaluation x64 26200.9974, AMD Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175 installed. Rust 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc), Cargo 1.100.0 (3acc79c0c), MSVC 19.44.35230.0, linker 14.44.35230.0. The test log confirms DXC and DXIL 1.9.2609.5 loaded from the assigned XCL_DXC_DIR.
  • 1 passed, 0 failed, 0 ignored, 0 skipped. Cargo exited 0. The harness selected one test, filtered out 1,124, and finished in 0.06 s. There were no SKIPPED markers. The fixture uses CPU/DXC and has no optional GPU path.
  • The checked-in test requested the same synthetic compute shader twice through console_to_dxil. Both requests succeeded and the assertions verified identical DXIL bytes, identical static sampler lists, and the same DXIL buffer pointer while both results were live. The fresh shader cache produced a 2,308-byte DXIL container and a translated cache record with a byte-for-byte matching payload and zero static samplers.
cargo test --locked -p xcl --lib -- gpu::recomp::pso::compile_time_bench::repeated_console_shader_requests_share_dxil --exact --nocapture --test-threads=1

The run used the unoptimized test profile with CARGO_PROFILE_DEV_DEBUG=0, CARGO_PROFILE_TEST_DEBUG=0, CARGO_BUILD_JOBS=2, and CARGO_INCREMENTAL=0. It reused L:/XclTooling/pr1844-71f2ceb-t3-737e5ee5/target. TEMP, TMP, and an initially empty XCL_DXIL_CACHE were scoped to this run directory under L:/XclTooling/pr2085. The command, stdout, stderr, exit status, environment, and final verification logs are alongside this report. The assigned checkout and target slot are released.

Not tested

  • Nonempty static sampler lists, GPU dispatch, driver PSO creation, retail titles or smoke runs, the rest of the suite, and earlier revisions.

AI use

  • T3 Code / Codex (gpt-6.2-sol) ran the checked-in test, inspected the assertions and artifacts, and wrote this report.
**@⁠JJAutoCompare** on GitHub · 2026-11-25 03:42 UTC · [original](https://github.com/xcl-dev/xcl/pull/2085#issuecomment-7152169825) # PR #2085 native Windows compatibility check **Tested** - [PR #2085](https://git.gtahub.st/github/xcl-dev--xcl/pulls/2085) was open at `e56e7f57b430e9e30a173f59d2cfbd1f1941f647` before and after the run. The assigned checkout was clean and detached at that SHA both times. The PR description reports Wine testing, and the live discussion contained no independent native Windows report for this head. - STOR-WINLAB, Windows 11 Enterprise Evaluation x64 `26200.9974`, AMD Ryzen 7 3800X, Intel Arc A770 driver `32.0.101.9175` installed. Rust `1.100.0` (`0ef1bc386`, `x86_64-pc-windows-msvc`), Cargo `1.100.0` (`3acc79c0c`), MSVC `19.44.35230.0`, linker `14.44.35230.0`. The test log confirms DXC and DXIL `1.9.2609.5` loaded from the assigned `XCL_DXC_DIR`. - **1 passed, 0 failed, 0 ignored, 0 skipped.** Cargo exited `0`. The harness selected one test, filtered out 1,124, and finished in 0.06 s. There were no `SKIPPED` markers. The fixture uses CPU/DXC and has no optional GPU path. - The checked-in test requested the same synthetic compute shader twice through `console_to_dxil`. Both requests succeeded and the assertions verified identical DXIL bytes, identical static sampler lists, and the same DXIL buffer pointer while both results were live. The fresh shader cache produced a 2,308-byte DXIL container and a translated cache record with a byte-for-byte matching payload and zero static samplers. ```powershell cargo test --locked -p xcl --lib -- gpu::recomp::pso::compile_time_bench::repeated_console_shader_requests_share_dxil --exact --nocapture --test-threads=1 ``` The run used the unoptimized test profile with `CARGO_PROFILE_DEV_DEBUG=0`, `CARGO_PROFILE_TEST_DEBUG=0`, `CARGO_BUILD_JOBS=2`, and `CARGO_INCREMENTAL=0`. It reused `L:/XclTooling/pr1844-71f2ceb-t3-737e5ee5/target`. `TEMP`, `TMP`, and an initially empty `XCL_DXIL_CACHE` were scoped to this run directory under `L:/XclTooling/pr2085`. The command, stdout, stderr, exit status, environment, and final verification logs are alongside this report. The assigned checkout and target slot are released. **Not tested** - Nonempty static sampler lists, GPU dispatch, driver PSO creation, retail titles or smoke runs, the rest of the suite, and earlier revisions. **AI use** - T3 Code / Codex (`gpt-6.2-sol`) ran the checked-in test, inspected the assertions and artifacts, and wrote this report.
Author
Owner

@⁠Anon64 on GitHub · 2026-11-25 04:22 UTC · original

Regression run for this PR: head e56e7f5, based on main cbc296a. RTX 3060 12 GB (581.80, wave32), Windows 11 26200, release, XCL_NETWORK=0, A pressed every 4 s from 20 s, scripts/smoke.ps1 on a retail title for 60 s, back to back with the main run.

main cbc296a:

xcl-smoke v1
commit: cbc296ab65a2661a61e3e2da109134bcd5319f60
gpu: NVIDIA GeForce RTX 3060
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1490 (PresentX 1491)
presents per 2 s (last 3): 49 13 1
device removals: 0
crashes: 0
peak commit: 24762 MB

this PR:

xcl-smoke v1
commit: e56e7f57b430e9e30a173f59d2cfbd1f1941f647
gpu: NVIDIA GeForce RTX 3060
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1510 (PresentX 1510)
presents per 2 s (last 3): 51 12 2
device removals: 0
crashes: 0
peak commit: 24915 MB

No device removals or crashes; 101 % of main's frames, 100 % of its peak commit.

Not tested: the whole suite; world loading; whether these 60 s build pipelines that share DXIL.

Written with Claude Code (Claude Opus 5.5) from runs on this machine.

**@⁠Anon64** on GitHub · 2026-11-25 04:22 UTC · [original](https://github.com/xcl-dev/xcl/pull/2085#issuecomment-7152777196) Regression run for this PR: head `e56e7f5`, based on `main` `cbc296a`. RTX 3060 12 GB (581.80, wave32), Windows 11 26200, release, `XCL_NETWORK=0`, A pressed every 4 s from 20 s, `scripts/smoke.ps1` on a retail title for 60 s, back to back with the `main` run. main `cbc296a`: ``` xcl-smoke v1 commit: cbc296ab65a2661a61e3e2da109134bcd5319f60 gpu: NVIDIA GeForce RTX 3060 title: 21222967 seconds: 60 exit: 0x0 frames shown: 1490 (PresentX 1491) presents per 2 s (last 3): 49 13 1 device removals: 0 crashes: 0 peak commit: 24762 MB ``` this PR: ``` xcl-smoke v1 commit: e56e7f57b430e9e30a173f59d2cfbd1f1941f647 gpu: NVIDIA GeForce RTX 3060 title: 21222967 seconds: 60 exit: 0x0 frames shown: 1510 (PresentX 1510) presents per 2 s (last 3): 51 12 2 device removals: 0 crashes: 0 peak commit: 24915 MB ``` No device removals or crashes; 101 % of main's frames, 100 % of its peak commit. **Not tested:** the whole suite; world loading; whether these 60 s build pipelines that share DXIL. Written with Claude Code (Claude Opus 5.5) from runs on this machine.
Author
Owner

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

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

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 05:26 UTC · [original](https://github.com/xcl-dev/xcl/pull/2085#issuecomment-7153784765) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
Author
Owner

@⁠JoaoPauluu on GitHub · 2026-11-25 05:47 UTC · original

A regression run under Wine on Linux on the retail title: no device removal, no crash, frames level with main (1359 here; 1360 and 1374 on the two main runs). Nothing in the log points to the shared DXIL, so I cannot tell whether this run reached it; this is a regression run only. The new test repeated_console_shader_requests_share_dxil passes under Wine.

Tested

  • RTX 3060 12 GB (NVIDIA 620.70.06), i5-10400F, 16 GB, CachyOS (kernel 7.3.3), Proton Experimental 11.0-20261112 with the patched vkd3d-proton 3.1 from #257, DXC 1.9.2609.5. Release, cross-built for x86_64-pc-windows-gnu. e56e7f5 as it is (based on cbc296a) and main 6020a33, no uncommitted changes. Retail title 1.0.2.1, scripts/linux/smoke.sh (#257) for 60 s, no input. Runs in order: main, this PR (with other PRs in between), main. The new lib tests ran under Wine, one test per process.

Regression run

main (first run):

xcl-smoke v1
commit: 6020a33b16ba2de25b3aef5947552f2dc1831f09
gpu: NVIDIA GeForce RTX 3060
title: GTA6.Xbox.v1.0.2.1
seconds: 60
exit: 0x0
frames shown: 1360 (PresentX 1360)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 0 MB

this PR:

xcl-smoke v1
commit: e56e7f57b430e9e30a173f59d2cfbd1f1941f647
gpu: NVIDIA GeForce RTX 3060
title: GTA6.Xbox.v1.0.2.1
seconds: 60
exit: 0x0
frames shown: 1359 (PresentX 1359)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 0 MB

The second main run: 1374 frames, exit: 0x0, no device removal, no crash. Under Wine, peak commit reads 0 MB, so these blocks do not check memory.

Not tested

  • the whole test suite on this head, a cold DXIL cache, the compile-time effect, native Windows.

AI use

  • Claude Code (Claude Opus 5.5) built both commits, ran the tests and the runs and wrote this report. The account owner asked for test reports to be posted and has not reviewed this one.
**@⁠JoaoPauluu** on GitHub · 2026-11-25 05:47 UTC · [original](https://github.com/xcl-dev/xcl/pull/2085#issuecomment-7154142114) A regression run under Wine on Linux on the retail title: no device removal, no crash, frames level with `main` (1359 here; 1360 and 1374 on the two `main` runs). Nothing in the log points to the shared DXIL, so I cannot tell whether this run reached it; this is a regression run only. The new test `repeated_console_shader_requests_share_dxil` passes under Wine. **Tested** - RTX 3060 12 GB (NVIDIA 620.70.06), i5-10400F, 16 GB, CachyOS (kernel 7.3.3), Proton Experimental 11.0-20261112 with the patched vkd3d-proton 3.1 from #257, DXC 1.9.2609.5. Release, cross-built for `x86_64-pc-windows-gnu`. `e56e7f5` as it is (based on `cbc296a`) and `main` `6020a33`, no uncommitted changes. Retail title 1.0.2.1, `scripts/linux/smoke.sh` (#257) for 60 s, no input. Runs in order: main, this PR (with other PRs in between), main. The new lib tests ran under Wine, one test per process. **Regression run** main (first run): ``` xcl-smoke v1 commit: 6020a33b16ba2de25b3aef5947552f2dc1831f09 gpu: NVIDIA GeForce RTX 3060 title: GTA6.Xbox.v1.0.2.1 seconds: 60 exit: 0x0 frames shown: 1360 (PresentX 1360) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 0 MB ``` this PR: ``` xcl-smoke v1 commit: e56e7f57b430e9e30a173f59d2cfbd1f1941f647 gpu: NVIDIA GeForce RTX 3060 title: GTA6.Xbox.v1.0.2.1 seconds: 60 exit: 0x0 frames shown: 1359 (PresentX 1359) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 0 MB ``` The second `main` run: 1374 frames, `exit: 0x0`, no device removal, no crash. Under Wine, `peak commit` reads 0 MB, so these blocks do not check memory. **Not tested** - the whole test suite on this head, a cold DXIL cache, the compile-time effect, native Windows. **AI use** - Claude Code (Claude Opus 5.5) built both commits, ran the tests and the runs and wrote this report. The account owner asked for test reports to be posted and has not reviewed this one.
Author
Owner

@⁠raylitebull on GitHub · 2026-11-25 10:47 UTC · original

Code review on 529d13f:

  • Returning Result<Arc<Compiled>, String> from console_to_dxil* avoids cloning multi-megabyte DXIL byte vectors across graphics/compute pipeline builds (repeated_console_shader_requests_share_dxil confirms shared pointer storage).
  • Note: check PR description (two-pass real.rs callers still clone only on fallback) and CI workflow approved (running).

Remaining before merge: Fix PR description, Build and test green, and dual-vendor verification on 529d13f.

**@⁠raylitebull** on GitHub · 2026-11-25 10:47 UTC · [original](https://github.com/xcl-dev/xcl/pull/2085#issuecomment-7160178785) Code review on `529d13f`: - Returning `Result<Arc<Compiled>, String>` from `console_to_dxil*` avoids cloning multi-megabyte DXIL byte vectors across graphics/compute pipeline builds (`repeated_console_shader_requests_share_dxil` confirms shared pointer storage). - Note: check `PR description` (`two-pass` `real.rs` callers still clone only on fallback) and CI workflow approved (running). **Remaining before merge:** Fix `PR description`, `Build and test` green, and dual-vendor verification on `529d13f`.
Author
Owner

@⁠tiagonleal on GitHub · 2026-11-25 12:31 UTC · original

Verification on NVIDIA RTX 5070 Ti (Windows 11), head 529d13f557a1619813b1220e70c97a534320decd

Tested

  • Head 529d13f557a1619813b1220e70c97a534320decd (git rev-parse HEAD of a clean worktree, no local changes; merge-base with main 568e7db7729c8fa6c8f0f4b32d798faaf11462bb). The PR was open and the head unchanged when I started and again before writing this. The earlier verifications in the thread were on other heads.
  • Windows 11 Pro 10.0.26300 (Developer Mode off), NVIDIA GeForce RTX 5070 Ti 16 GB (driver 32.0.16.1742), AMD Ryzen 7 9800X3D, 32 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09), cargo 1.100.0, debug profile (the cargo test default), DXC from the Windows SDK 10.0.26100.0 (dxcompiler/dxil 1.8.2502.11).
  • The PR touches crates/xcl/tests/console_shaders.rs, so I ran that target and not only --lib: cargo test -p xcl --test console_shaders -- --test-threads=4 --nocapture: 3 passed, 0 failed, 4 ignored (21 s including an incremental build; the 4 ignored carry #[ignore] in the file).
  • cargo test -p xcl --lib gpu::recomp::pso -- --test-threads=4 --nocapture: 17 passed, 0 failed, 1 ignored.
  • cargo test -p xcl --lib hle::d3d12x -- --test-threads=4 --nocapture: 177 passed, 0 failed, 2 ignored (covers the real.rs callers).
  • cargo test -p xcl --lib -- --test-threads=4 --nocapture (whole lib): 1095 passed, 4 failed, 26 ignored. The 4 failures are gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0 to _3 with CreateComputePipelineState: Not enough memory resources are available to complete this operation. (0x8007000E). The same four fail with the same message on the merge-base 568e7db (1094 passed, 4 failed, 26 ignored there; the one extra pass here is repeated_console_shader_requests_share_dxil), so they are not from this PR.
  • SKIPPED lines in the whole-lib run: shaders::tests::pso_measurement_compiles_an_exact_synthetic_record: cannot disable the driver cache (Windows Developer Mode is required), 0x887A002D; and 23 GPU tests with no wave64 or refused (unsupported V_MUL_F16 / V_PK_MUL_F16 / V_CVT_F16_F32 ...) on this wave32-only GPU.

Not tested

  • AMD (the other half of the requested dual-vendor check).
  • The retail game and any xcl-smoke regression run; this is a unit/integration-test run only, so I did not check that the shared DXIL is reached at run time.
  • Developer Mode on (off here); cargo test --workspace; the 4 ignored tests in console_shaders; release profile.
  • A separate game job was using the same machine in bursts. I started each run when no game process above 2 GB was running, but the whole-lib run happened close to such a burst.

AI use

  • Claude Code created the clean worktree, built and ran the tests above, compared the failing tests with the merge-base, and wrote this report. No code was changed.

Run and written with Claude Code (Claude Fable 5.2 and Claude Sonnet 5.5).

**@⁠tiagonleal** on GitHub · 2026-11-25 12:31 UTC · [original](https://github.com/xcl-dev/xcl/pull/2085#issuecomment-7162494658) Verification on NVIDIA RTX 5070 Ti (Windows 11), head `529d13f557a1619813b1220e70c97a534320decd` **Tested** - Head `529d13f557a1619813b1220e70c97a534320decd` (`git rev-parse HEAD` of a clean worktree, no local changes; merge-base with `main` `568e7db7729c8fa6c8f0f4b32d798faaf11462bb`). The PR was open and the head unchanged when I started and again before writing this. The earlier verifications in the thread were on other heads. - Windows 11 Pro 10.0.26300 (Developer Mode off), NVIDIA GeForce RTX 5070 Ti 16 GB (driver 32.0.16.1742), AMD Ryzen 7 9800X3D, 32 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09), cargo 1.100.0, debug profile (the `cargo test` default), DXC from the Windows SDK 10.0.26100.0 (dxcompiler/dxil 1.8.2502.11). - The PR touches `crates/xcl/tests/console_shaders.rs`, so I ran that target and not only `--lib`: `cargo test -p xcl --test console_shaders -- --test-threads=4 --nocapture`: 3 passed, 0 failed, 4 ignored (21 s including an incremental build; the 4 ignored carry `#[ignore]` in the file). - `cargo test -p xcl --lib gpu::recomp::pso -- --test-threads=4 --nocapture`: 17 passed, 0 failed, 1 ignored. - `cargo test -p xcl --lib hle::d3d12x -- --test-threads=4 --nocapture`: 177 passed, 0 failed, 2 ignored (covers the `real.rs` callers). - `cargo test -p xcl --lib -- --test-threads=4 --nocapture` (whole lib): 1095 passed, 4 failed, 26 ignored. The 4 failures are `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0` to `_3` with `CreateComputePipelineState: Not enough memory resources are available to complete this operation. (0x8007000E)`. The same four fail with the same message on the merge-base `568e7db` (1094 passed, 4 failed, 26 ignored there; the one extra pass here is `repeated_console_shader_requests_share_dxil`), so they are not from this PR. - `SKIPPED` lines in the whole-lib run: `shaders::tests::pso_measurement_compiles_an_exact_synthetic_record`: cannot disable the driver cache (Windows Developer Mode is required), 0x887A002D; and 23 GPU tests with `no wave64` or `refused (unsupported V_MUL_F16 / V_PK_MUL_F16 / V_CVT_F16_F32 ...)` on this wave32-only GPU. **Not tested** - AMD (the other half of the requested dual-vendor check). - The retail game and any `xcl-smoke` regression run; this is a unit/integration-test run only, so I did not check that the shared DXIL is reached at run time. - Developer Mode on (off here); `cargo test --workspace`; the 4 ignored tests in `console_shaders`; release profile. - A separate game job was using the same machine in bursts. I started each run when no game process above 2 GB was running, but the whole-lib run happened close to such a burst. **AI use** - Claude Code created the clean worktree, built and ran the tests above, compared the failing tests with the merge-base, and wrote this report. No code was changed. Run and written with Claude Code (Claude Fable 5.2 and Claude Sonnet 5.5).
Author
Owner

@⁠Lum7nt on GitHub · 2026-11-25 12:50 UTC · original

Native Windows / AMD comparison on clean PR head 529d13f557a1619813b1220e70c97a534320decd and main 568e7db7729c8fa6c8f0f4b32d798faaf11462bb: Radeon RX 9070 XT, driver 32.0.32029.2010, DXC 1.9.2609.5. With XCL_ADAPTER=9070 XT and XCL_HEAP_WINDOWS=1, both were run with:

cargo test --offline --locked --workspace --release --no-fail-fast -- --test-threads=4

  • Main: 1152 passed, 2 failed, 46 ignored.
  • PR: 1153 passed, 2 failed, 46 ignored; the shared-buffer regression passed.
  • Each log contained 7 explicit skip messages. Both runs failed fuzz seeds 722 and 1599, tracked in #2115; this was not a green suite.

No retail title or game-sample tests were run for this comparison. AI use: OpenAI Codex (GPT-6; exact variant unavailable) ran the checks and drafted this report.

**@⁠Lum7nt** on GitHub · 2026-11-25 12:50 UTC · [original](https://github.com/xcl-dev/xcl/pull/2085#issuecomment-7162920023) Native Windows / AMD comparison on clean PR head `529d13f557a1619813b1220e70c97a534320decd` and main `568e7db7729c8fa6c8f0f4b32d798faaf11462bb`: Radeon RX 9070 XT, driver `32.0.32029.2010`, DXC 1.9.2609.5. With `XCL_ADAPTER=9070 XT` and `XCL_HEAP_WINDOWS=1`, both were run with: `cargo test --offline --locked --workspace --release --no-fail-fast -- --test-threads=4` - Main: 1152 passed, 2 failed, 46 ignored. - PR: 1153 passed, 2 failed, 46 ignored; the shared-buffer regression passed. - Each log contained 7 explicit skip messages. Both runs failed fuzz seeds 722 and 1599, tracked in #2115; this was not a green suite. No retail title or game-sample tests were run for this comparison. AI use: OpenAI Codex (GPT-6; exact variant unavailable) ran the checks and drafted this report.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-26 07:28 UTC · original

Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current main on the new head — needs another rebase before it can be tested.

**@⁠DavidM1911** on GitHub · 2026-11-26 07:28 UTC · [original](https://github.com/xcl-dev/xcl/pull/2085#issuecomment-7185503137) Re-verification on RTX 3060 Ti (Windows 11): still a **merge conflict with current `main`** on the new head — needs another rebase before it can be tested.
This pull request has changes conflicting with the target branch.
  • crates/xcl/src/gpu/recomp/pso.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

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