Skip to content

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

Draft
oishigeso wants to merge 1 commit into
xcl-dev:mainfrom
oishigeso:pipelines-1-prep
Draft

oishigeso wants to merge 1 commit into
xcl-dev:mainfrom
oishigeso:pipelines-1-prep

Conversation

@oishigeso

@oishigeso oishigeso commented Nov 24, 2026 •

Copy link
Copy Markdown

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 (Recompiler: memory windows from the descriptor heap (no per-access switch) #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.

@JoaoPauluu

Copy link
Copy Markdown

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

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

…tion

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 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

goal:world-load Bears on the retail title getting past world loading

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants