D3D12.X: the PC desc of a translated VS / PS pipeline in its own function #757

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

@⁠oishigeso on GitHub · 2026-11-24 04:44 UTC · original
oishigeso:pipelines-1-prep → main · +42 −25 · 1 files · 1 commits · draft

Preparation for #755 (part 1 of 3), no change in behaviour. prep_graphics does what
translated_graphics_pso did between its checks and the driver call: the translated shaders,
XCL's ABI root signature with their static samplers, the rect list GS, PC formats and topology.
It returns them with the DXIL the desc points at. Part 3 makes the same desc outside the title.

What is in it

  • prep_graphics / GraphicsPrep (crates/xcl/src/hle/d3d12x/real.rs); translated_graphics_pso calls it

Tested

  • AMD Radeon RX 6700 XT (driver 32.0.21030.2001), Ryzen 5 3600, Windows 10 Pro 19045, rustc 1.100.0, release
  • Rebased onto main 9e3831e (#680: the split-out prep_graphics sits under with_switch_fallback like the rest of translated_graphics_pso): built and run on it (below). The workspace run below is from before the rebase, on f4ce27c
  • cargo test --workspace -- --test-threads=4: 659 passed, 3 failed, 21 ignored; the 3 failures (title_textures::placed_title_textures_share_vram_and_preserve_pixels, title_textures::transitions_apply_when_their_list_is_submitted, vram::d32s8_targets_take_their_own_size_of_video_memory) fail on main (f4ce27c) the same way in a full run (657 passed, 3 failed there) and pass alone; no GPU test SKIPPED

Regression run

main:

xcl-smoke v1
commit: 930e8b49c1c2ec683d22c724a398b39111cd0e56
gpu: AMD Radeon RX 6700 XT
title: RetailTitle
seconds: 60
exit: 0x0
frames shown: 373 (PresentX 374)
presents per 2 s (last 3): 0 28 60
device removals: 0
crashes: 0
peak commit: 19259 MB

PR (this PR's head commit; the title is run through a folder named RetailTitle):

xcl-smoke v1
commit: 4e8aaf4b393ce59d7053de987906a0f8a4aed476
gpu: AMD Radeon RX 6700 XT
title: RetailTitle
seconds: 60
exit: 0x0
frames shown: 545 (PresentX 545)
presents per 2 s (last 3): 0 44 60
device removals: 0
crashes: 0
peak commit: 19163 MB

Not tested

  • NVIDIA, Intel, RDNA4

AI use

  • Claude Code (Claude Opus 5.5) wrote the code, the tests and this description, and ran the tests and runs above on my PC at my direction. An independent Claude Opus 5.5 review of the diff found 2 bugs and 6 risks; all were fixed before this was opened.
**@⁠oishigeso** on GitHub · 2026-11-24 04:44 UTC · [original](https://github.com/xcl-dev/xcl/pull/757) `oishigeso:pipelines-1-prep` → `main` · +42 −25 · 1 files · 1 commits · draft Preparation for #755 (part 1 of 3), no change in behaviour. `prep_graphics` does what `translated_graphics_pso` did between its checks and the driver call: the translated shaders, XCL's ABI root signature with their static samplers, the rect list GS, PC formats and topology. It returns them with the DXIL the desc points at. Part 3 makes the same desc outside the title. **What is in it** - `prep_graphics` / `GraphicsPrep` (`crates/xcl/src/hle/d3d12x/real.rs`); `translated_graphics_pso` calls it **Tested** - AMD Radeon RX 6700 XT (driver 32.0.21030.2001), Ryzen 5 3600, Windows 10 Pro 19045, rustc 1.100.0, release - Rebased onto `main` 9e3831e (#680: the split-out `prep_graphics` sits under `with_switch_fallback` like the rest of `translated_graphics_pso`): built and run on it (below). The workspace run below is from before the rebase, on f4ce27c - `cargo test --workspace -- --test-threads=4`: 659 passed, 3 failed, 21 ignored; the 3 failures (`title_textures::placed_title_textures_share_vram_and_preserve_pixels`, `title_textures::transitions_apply_when_their_list_is_submitted`, `vram::d32s8_targets_take_their_own_size_of_video_memory`) fail on `main` (f4ce27c) the same way in a full run (657 passed, 3 failed there) and pass alone; no GPU test SKIPPED **Regression run** main: ``` xcl-smoke v1 commit: 930e8b49c1c2ec683d22c724a398b39111cd0e56 gpu: AMD Radeon RX 6700 XT title: RetailTitle seconds: 60 exit: 0x0 frames shown: 373 (PresentX 374) presents per 2 s (last 3): 0 28 60 device removals: 0 crashes: 0 peak commit: 19259 MB ``` PR (this PR's head commit; the title is run through a folder named RetailTitle): ``` xcl-smoke v1 commit: 4e8aaf4b393ce59d7053de987906a0f8a4aed476 gpu: AMD Radeon RX 6700 XT title: RetailTitle seconds: 60 exit: 0x0 frames shown: 545 (PresentX 545) presents per 2 s (last 3): 0 44 60 device removals: 0 crashes: 0 peak commit: 19163 MB ``` **Not tested** - NVIDIA, Intel, RDNA4 **AI use** - Claude Code (Claude Opus 5.5) wrote the code, the tests and this description, and ran the tests and runs above on my PC at my direction. An independent Claude Opus 5.5 review of the diff found 2 bugs and 6 risks; all were fixed before this was opened.
prep_graphics: what translated_graphics_pso did between its checks and the driver call (the
translated shaders, XCL's ABI root signature with their static samplers, the rect list GS, PC
formats and topology), returned with the DXIL it points at. No change in behaviour; a later
change makes the same desc outside the title (xcl pipelines).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:31:28 +00:00
Author
Owner

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

Test report: #757 under Wine (Linux, NVIDIA): GTA VI regression pair

A retail-title run of this PR's head 9603711 against main 64b3f35 under Wine / vkd3d-proton. No device removals or crashes, and frames within what smoke.sh / pr_check.py ask for.

Setup

  • CachyOS, kernel 7.3.3-1-cachyos, Intel i5-10400F, 16 GB RAM, NVIDIA GeForce RTX 3060 12 GB, driver 620.70.06
  • Proton Experimental experimental-11.0-20261112 (wine-11.0), vkd3d-proton v3.1 (4522cc1a) + the patch from #257, DXVK from Proton, DXC 1.9.2609, DXVK_CONFIG="dxgi.hideNvidiaGpu = False"
  • Rust 1.100.0, x86_64-pc-windows-gnu (mingw-w64-gcc 16.2.0), release builds
  • GTA VI 1.0.2.1 (my own dump), 60 s runs with scripts/linux/smoke.sh from #257, XCL_NETWORK=0. Order: main, #754, #757, #757, #754, main (the same two main runs serve both reports)
build frames shown first presents at draws in XCL's activity lines removals / crashes
64b3f35 958, 966 22 s, 22 s 12204, 12513 0 / 0
9603711 988, 980 22 s, 22 s 12468, 16600 0 / 0
  • No change in behaviour expected (preparation for #755), and none seen: the same 40 … in the AS slot – refused lines as main on every run, and no no stand-in pipeline line.
xcl-smoke v1
commit: 64b3f35599bb7102f55d640e1a791e7d6dd3b175
gpu: NVIDIA GeForce RTX 3060
title: GTA6.Xbox.v1.0.2.1
seconds: 60
exit: 0x0
frames shown: 958 (PresentX 959)
presents per 2 s (last 3): 48 44 0
device removals: 0
crashes: 0
peak commit: 0 MB
xcl-smoke v1
commit: 96037118b18db001f94c60243a212f91beec692d
gpu: NVIDIA GeForce RTX 3060
title: GTA6.Xbox.v1.0.2.1
seconds: 60
exit: 0x0
frames shown: 988 (PresentX 988)
presents per 2 s (last 3): 49 57 1
device removals: 0
crashes: 0
peak commit: 0 MB

(The first pair. peak commit: 0 MB is XCL reading 0 MB committed under Wine, see #257.)

Not tested

  • The test suite on this branch; Windows, AMD; world loading (past 60 s); the picture

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

**@⁠JoaoPauluu** on GitHub · 2026-11-24 05:03 UTC · [original](https://github.com/xcl-dev/xcl/pull/757#issuecomment-7122585555) ### Test report: #757 under Wine (Linux, NVIDIA): GTA VI regression pair A retail-title run of this PR's head `9603711` against `main` `64b3f35` under Wine / vkd3d-proton. No device removals or crashes, and frames within what `smoke.sh` / `pr_check.py` ask for. **Setup** - CachyOS, kernel 7.3.3-1-cachyos, Intel i5-10400F, 16 GB RAM, NVIDIA GeForce RTX 3060 12 GB, driver 620.70.06 - Proton Experimental `experimental-11.0-20261112` (wine-11.0), vkd3d-proton v3.1 (`4522cc1a`) + the patch from #257, DXVK from Proton, DXC 1.9.2609, `DXVK_CONFIG="dxgi.hideNvidiaGpu = False"` - Rust 1.100.0, `x86_64-pc-windows-gnu` (mingw-w64-gcc 16.2.0), release builds - GTA VI 1.0.2.1 (my own dump), 60 s runs with `scripts/linux/smoke.sh` from #257, `XCL_NETWORK=0`. Order: main, #754, #757, #757, #754, main (the same two `main` runs serve both reports) | build | frames shown | first presents at | draws in XCL's activity lines | removals / crashes | |---|---|---|---|---| | `64b3f35` | 958, 966 | 22 s, 22 s | 12204, 12513 | 0 / 0 | | `9603711` | 988, 980 | 22 s, 22 s | 12468, 16600 | 0 / 0 | - No change in behaviour expected (preparation for #755), and none seen: the same 40 `… in the AS slot – refused` lines as `main` on every run, and no `no stand-in pipeline` line. ``` xcl-smoke v1 commit: 64b3f35599bb7102f55d640e1a791e7d6dd3b175 gpu: NVIDIA GeForce RTX 3060 title: GTA6.Xbox.v1.0.2.1 seconds: 60 exit: 0x0 frames shown: 958 (PresentX 959) presents per 2 s (last 3): 48 44 0 device removals: 0 crashes: 0 peak commit: 0 MB ``` ``` xcl-smoke v1 commit: 96037118b18db001f94c60243a212f91beec692d gpu: NVIDIA GeForce RTX 3060 title: GTA6.Xbox.v1.0.2.1 seconds: 60 exit: 0x0 frames shown: 988 (PresentX 988) presents per 2 s (last 3): 49 57 1 device removals: 0 crashes: 0 peak commit: 0 MB ``` (The first pair. `peak commit: 0 MB` is XCL reading 0 MB committed under Wine, see #257.) **Not tested** - The test suite on this branch; Windows, AMD; world loading (past 60 s); the picture **AI use:** Claude Code (Claude Opus 5.5) built the commits, ran every run above on the machine above and wrote this report. The blocks and counts are pasted from those runs. The account owner asked for test reports to be posted while they were away and has not reviewed this one.
Author
Owner

@⁠WASDeKeys on GitHub · 2026-11-25 09:57 UTC · original

Test report: #757, NVIDIA on Windows (unit tests only)

The test suite gives the same result on the PR head as on the commit it branched from: 776 passed, 0 failed, 41 ignored in both runs. No difference seen.

Setup

  • GPU: NVIDIA GeForce RTX 3050 6GB Laptop GPU, driver 595.97
  • CPU: AMD Ryzen 5 7235HS
  • RAM: 12 GB (as reported by Windows)
  • Windows 11, version 10.0.26200.9974
  • rustc 1.100.0 (0ef1bc386 2026-11-09)
  • Laptop, [plugged in / on battery]
  • Debug (test profile) build, with CARGO_PROFILE_DEV_DEBUG=0 and CARGO_PROFILE_TEST_DEBUG=0 to keep the link step small

Commits compared

  • Baseline: 9e3831e (the PR's merge-base with upstream main)
  • PR head: 4e8aaf4
  • Clean working tree on both runs

Command (same for both runs)
cargo test --workspace --no-fail-fast -- --test-threads=4

Results

  • 9e3831e: 776 passed, 0 failed, 41 ignored
  • 4e8aaf4: 776 passed, 0 failed, 41 ignored
  • The per-group counts match line by line (20 groups, all ok).
  • Skipped on both runs (3): gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask (no wave64), gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware (no wave64), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows). The two wave64 skips are expected on a 32-lane NVIDIA card.

Not tested

  • The retail title: no smoke runs, no world loading, no picture check
  • Release build
  • AMD, Intel
  • #758 and #759

AI use: Claude helped me set up the runs and draft this report. I ran the commands myself and the numbers above are from my own output.

**@⁠WASDeKeys** on GitHub · 2026-11-25 09:57 UTC · [original](https://github.com/xcl-dev/xcl/pull/757#issuecomment-7159035755) Test report: #757, NVIDIA on Windows (unit tests only) The test suite gives the same result on the PR head as on the commit it branched from: 776 passed, 0 failed, 41 ignored in both runs. No difference seen. **Setup** - GPU: NVIDIA GeForce RTX 3050 6GB Laptop GPU, driver 595.97 - CPU: AMD Ryzen 5 7235HS - RAM: 12 GB (as reported by Windows) - Windows 11, version 10.0.26200.9974 - rustc 1.100.0 (0ef1bc386 2026-11-09) - Laptop, [plugged in / on battery] - Debug (test profile) build, with CARGO_PROFILE_DEV_DEBUG=0 and CARGO_PROFILE_TEST_DEBUG=0 to keep the link step small **Commits compared** - Baseline: 9e3831e (the PR's merge-base with upstream main) - PR head: 4e8aaf4 - Clean working tree on both runs Command (same for both runs) cargo test --workspace --no-fail-fast -- --test-threads=4 **Results** - 9e3831e: 776 passed, 0 failed, 41 ignored - 4e8aaf4: 776 passed, 0 failed, 41 ignored - The per-group counts match line by line (20 groups, all ok). - Skipped on both runs (3): gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask (no wave64), gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware (no wave64), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows). The two wave64 skips are expected on a 32-lane NVIDIA card. **Not tested** - The retail title: no smoke runs, no world loading, no picture check - Release build - AMD, Intel - #758 and #759 **AI use**: Claude helped me set up the runs and draft this report. I ran the commands myself and the numbers above are from my own output.
Author
Owner

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

Verification on RTX 3060 Ti (Windows 11): merge conflict with current main — needs a rebase before it can be tested.

**@⁠DavidM1911** on GitHub · 2026-11-25 11:16 UTC · [original](https://github.com/xcl-dev/xcl/pull/757#issuecomment-7160825596) Verification on RTX 3060 Ti (Windows 11): **merge conflict with current `main`** — needs a rebase before it can be tested.
This pull request has changes conflicting with the target branch.
  • crates/xcl/src/hle/d3d12x/real.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/757/head:github-bot/gh-757'
git switch 'github-bot/gh-757'

Merge

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