Recompiler: DXC arguments come from one public function (arguments) #1956

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

@⁠sombraSoft on GitHub · 2026-11-24 23:51 UTC · original
sombraSoft:recompiler/dxc-arguments → main · +33 −16 · 1 files · 1 commits · draft

Part of #1269; used by #1957.

compile_here built DXC's argument list inline. dxc::arguments(src_len, entry, profile, extra) returns it, so xcl shaders --explain (#1957) can run dxc.exe with exactly the arguments a title's compile uses. No change in what DXC is given.

#1529 makes the same function (private, plus -disable-lifetime-markers); the two merge by keeping #1529's body and making it pub.

What is in it

  • Recompiler: DXC arguments come from one public function (arguments) – crates/xcl/src/gpu/recomp/dxc.rs, with a unit test of the size levels and the caller's arguments going last

Tested

  • NVIDIA GeForce RTX 3060 Ti (driver 32.0.16.2124), AMD Ryzen 9 5900X, Windows 11 Pro 10.0.26300, rustc 1.97.1; tests in debug, smoke run in release; DXC 1.8.2502.11 (Windows SDK 10.0.26100)
  • cargo test --workspace --no-fail-fast -- --test-threads=4 on a7217a4: 976 passed, 0 failed, 45 ignored
  • SKIPPED (all from existing tests): 18 × no wave64, 1 × no heap windows, 1 × cannot disable the driver cache (Developer Mode off), 3 × per-lane form refused (f16 / VOP3 modifiers)

Regression run

main:

xcl-smoke v1
commit: 689f2db477c3c062cf162649781640ef8a977c18
gpu: NVIDIA GeForce RTX 3060 Ti
title: 55118d47
seconds: 60
exit: 0x0
frames shown: 1075 (PresentX 1075)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15431 MB

this PR (a7217a4):

xcl-smoke v1
commit: a7217a4f6b1c149ccf5a31910d562b6bf3e86238
gpu: NVIDIA GeForce RTX 3060 Ti
title: 55118d47
seconds: 60
exit: 0x0
frames shown: 1170 (PresentX 1170)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15331 MB

Not tested

  • AMD and Intel GPUs, GPUs with native wave64, DXC 1.9, Linux / vkd3d-proton
  • no change in behaviour is expected; the title run checks that

AI use

  • Claude Code with Claude Opus 5.5: wrote the code, the test and this description. The tests and the smoke runs were run on the hardware above.
**@⁠sombraSoft** on GitHub · 2026-11-24 23:51 UTC · [original](https://github.com/xcl-dev/xcl/pull/1956) `sombraSoft:recompiler/dxc-arguments` → `main` · +33 −16 · 1 files · 1 commits · draft Part of #1269; used by #1957. `compile_here` built DXC's argument list inline. `dxc::arguments(src_len, entry, profile, extra)` returns it, so `xcl shaders --explain` (#1957) can run `dxc.exe` with exactly the arguments a title's compile uses. No change in what DXC is given. #1529 makes the same function (private, plus `-disable-lifetime-markers`); the two merge by keeping #1529's body and making it `pub`. **What is in it** - `Recompiler: DXC arguments come from one public function (arguments)` – `crates/xcl/src/gpu/recomp/dxc.rs`, with a unit test of the size levels and the caller's arguments going last **Tested** - NVIDIA GeForce RTX 3060 Ti (driver 32.0.16.2124), AMD Ryzen 9 5900X, Windows 11 Pro 10.0.26300, rustc 1.97.1; tests in debug, smoke run in release; DXC 1.8.2502.11 (Windows SDK 10.0.26100) - `cargo test --workspace --no-fail-fast -- --test-threads=4` on a7217a4: 976 passed, 0 failed, 45 ignored - `SKIPPED` (all from existing tests): 18 × no wave64, 1 × no heap windows, 1 × cannot disable the driver cache (Developer Mode off), 3 × per-lane form refused (f16 / VOP3 modifiers) **Regression run** main: ``` xcl-smoke v1 commit: 689f2db477c3c062cf162649781640ef8a977c18 gpu: NVIDIA GeForce RTX 3060 Ti title: 55118d47 seconds: 60 exit: 0x0 frames shown: 1075 (PresentX 1075) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15431 MB ``` this PR (a7217a4): ``` xcl-smoke v1 commit: a7217a4f6b1c149ccf5a31910d562b6bf3e86238 gpu: NVIDIA GeForce RTX 3060 Ti title: 55118d47 seconds: 60 exit: 0x0 frames shown: 1170 (PresentX 1170) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15331 MB ``` **Not tested** - AMD and Intel GPUs, GPUs with native wave64, DXC 1.9, Linux / vkd3d-proton - no change in behaviour is expected; the title run checks that **AI use** - Claude Code with Claude Opus 5.5: wrote the code, the test and this description. The tests and the smoke runs were run on the hardware above.
compile_here built DXC's argument list inline (entry, profile, HLSL 2021,
-O0 above 8 MB of HLSL and -O1 above 1 MB, then the caller's). arguments()
returns that list, so xcl shaders --explain can run dxc.exe with exactly
the arguments a title's compile uses. No change in what DXC is given.

#1529 makes the same function (private, plus -disable-lifetime-markers);
the two merge by keeping its body.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:11:28 +00:00
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 02:59 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 02:59 UTC · [original](https://github.com/xcl-dev/xcl/pull/1956#issuecomment-7151473055) 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!
This pull request has changes conflicting with the target branch.
  • crates/xcl/src/gpu/recomp/dxc.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/1956/head:github-bot/gh-1956'
git switch 'github-bot/gh-1956'

Merge

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