Shaders: share compiled DXIL across pipeline builds #2075

Closed
rison1337 wants to merge 1 commit from upstream-pr/2085 into main
rison1337 commented 2026-11-25 03:33:41 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by rison1337 on 2026-11-25T03:33:41Z.


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.

<!-- greyfinch-sync:ivall/xcl:issue:5484644038 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2085). Originally posted by [rison1337](https://github.com/rison1337) on 2026-11-25T03:33:41Z. --- 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://github.com/xcl-dev/xcl/pull/2085#issuecomment-7152169825), [Windows paired title regression](https://github.com/xcl-dev/xcl/pull/2085#issuecomment-7152777196). 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.
JJAutoCompare commented 2026-11-25 04:10:37 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T03:42:36Z.


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.
<!-- greyfinch-sync:ivall/xcl:comment:7152169825 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2085#issuecomment-7152169825). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T03:42:36Z. --- # PR #2085 native Windows compatibility check **Tested** - [PR #2085](https://github.com/xcl-dev/xcl/pull/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.
Anon64 commented 2026-11-25 05:08:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-25T04:22:02Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7152777196 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2085#issuecomment-7152777196). Originally posted by [Anon64](https://github.com/Anon64) on 2026-11-25T04:22:02Z. --- 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.
DavidM1911 commented 2026-11-25 06:05:51 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T05:26:57Z.


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!

<!-- greyfinch-sync:ivall/xcl:comment:7153784765 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2085#issuecomment-7153784765). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T05:26:57Z. --- 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!
JoaoPauluu commented 2026-11-25 06:05:58 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JoaoPauluu on 2026-11-25T05:47:31Z.


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.
<!-- greyfinch-sync:ivall/xcl:comment:7154142114 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2085#issuecomment-7154142114). Originally posted by [JoaoPauluu](https://github.com/JoaoPauluu) on 2026-11-25T05:47:31Z. --- 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.
raylitebull commented 2026-11-25 11:09:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-25T10:47:32Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7160178785 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2085#issuecomment-7160178785). Originally posted by [raylitebull](https://github.com/raylitebull) on 2026-11-25T10:47:32Z. --- 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`.
tiagonleal commented 2026-11-25 13:05:09 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by tiagonleal on 2026-11-25T12:31:39Z.


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).

<!-- greyfinch-sync:ivall/xcl:comment:7162494658 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2085#issuecomment-7162494658). Originally posted by [tiagonleal](https://github.com/tiagonleal) on 2026-11-25T12:31:39Z. --- 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).
Lum7nt commented 2026-11-25 13:05:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Lum7nt on 2026-11-25T12:50:01Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7162920023 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2085#issuecomment-7162920023). Originally posted by [Lum7nt](https://github.com/Lum7nt) on 2026-11-25T12:50:01Z. --- 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.
DavidM1911 commented 2026-11-26 08:04:39 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T07:28:52Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7185503137 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2085#issuecomment-7185503137). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T07:28:52Z. --- 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.
throny commented 2026-11-26 17:19:02 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-26T17:19:02Z.


Two contributors checked independently and found that this PR makes the same change as #2767 (for #2609): #1607, group D133. They suggest keeping #2767. If you agree, closing this PR or joining the other one would save the maintainers a review. If the two differ in a way the checks missed, a note in #1607 helps.

This is a hint from the community triage in #1607, not a maintainer decision.

AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.

<!-- greyfinch-sync:ivall/xcl:comment:7198817938 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2085#issuecomment-7198817938). Originally posted by [throny](https://github.com/throny) on 2026-11-26T17:19:02Z. --- <!-- xcl-1607-hint:D133 --> Two contributors checked independently and found that this PR makes the same change as #2767 (for #2609): #1607, group D133. They suggest keeping #2767. If you agree, closing this PR or joining the other one would save the maintainers a review. If the two differ in a way the checks missed, a note in #1607 helps. This is a hint from the community triage in #1607, not a maintainer decision. AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
raylitebull commented 2026-11-28 21:13:27 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-28T21:13:27Z.


Closing as a duplicate of #2767 (confirmed by 2+ contributors in #1607, group D133). Thanks for the contribution — feel free to comment if this covers something #2767 does not.

<!-- greyfinch-sync:ivall/xcl:comment:7245861727 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2085#issuecomment-7245861727). Originally posted by [raylitebull](https://github.com/raylitebull) on 2026-11-28T21:13:27Z. --- Closing as a duplicate of #2767 (confirmed by 2+ contributors in #1607, group D133). Thanks for the contribution — feel free to comment if this covers something #2767 does not.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!2075
No description provided.