Skip to content

D3D12.X: console device slots #83-#126 run the PC's newer device methods - #3135

Draft
KOLESNiii wants to merge 1 commit into
xcl-dev:mainfrom
KOLESNiii:d3d12x-device-tail-remap
Draft

KOLESNiii wants to merge 1 commit into
xcl-dev:mainfrom
KOLESNiii:d3d12x-device-tail-remap

Conversation

@KOLESNiii

@KOLESNiii KOLESNiii commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Status: a guess that needs evidence before it can be merged. The mapping of console device slots #83-#126 onto the PC's newer device methods at fixed distances is reasoned from how titles call the API and from the PC's D3D12; it is not taken from any console documentation, and no title has confirmed it yet. Draft until then.

Evidence that would confirm it: on main this slot is a logged stub, so a title that calls it shows ID3D12Device::#<slot> in xcl.log and in report.json's stubs; an XCL_D3D12_TRACE=1 run of such a title shows its arguments; arguments that read as the PC method's (a PC desc, an IID the PC method takes) confirm a slot. The retail game used for the regression run does not get there.

If you run a title that gets there, please post those lines here (not the whole log, which names your paths).

After its own extensions, the console device vtable continues with the PC's newer device methods

in PC order, at a fixed distance per run: #83-#103 are PC #44-#64 (+39), #105-#107 PC #65-#67

(+40), #125/#126 PC #73/#74 (+52). The slots XCL already handles from title calls sit exactly

there: #86 CreatePipelineState, #108 GetResourceAllocationInfo2, #127 CreateCommittedResource3.

Every other slot fell into the console-extension stub, which answers S_OK and leaves the out

pointer untouched: a created object comes back NULL, SetEventOnMultipleFenceCompletion never

sets its event.

The 20 slots whose arguments are the PC's now go to that PC method through console_remap

(title calls only; the runtime keeps PC's), including XCL's wrappers of CreatePipelineLibrary,

SetResidencyPriority, EnqueueMakeResident, CreateStateObject and CreateShaderCacheSession. Slots

that take a resource or heap description (#92-#95, #109, #110, #112, #128, #129), CreateCommandList1

(#90), CreateCommandQueue1 (#124) and CreateSampler2 (#130) need console translation and stay

stubs here. The identities are from a console API audit; no log yet shows a title calling these.

What is in it

  • crates/xcl/src/hle/d3d12x/real.rs: +59 / -0

  • new tests: console_device_slots_run_the_pc_method_of_their_run

Tested

  • NVIDIA RTX 2070 SUPER (driver 32.0.16.2140), AMD Ryzen 5 3600XT, Windows 11 build 26300, Rust 1.100.0 MSVC; tests in debug

  • Current head 209d16a0 (rebased onto main 765b2c5b to resolve conflicts): the suite has not been rerun on it; the counts below are from the earlier heads they name.

  • cargo test --workspace --no-fail-fast -- --test-threads=4 on bfc6ffc6 (built on main 336fddda; it merges into the current main e429936c without conflict): 2123 passed, 9 failed, 48 ignored, 25 SKIPPED lines (21 no wave64, 3 gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426, 1 no heap windows).

  • The 9 failures are the ones main has (3 e2e title tests and 6 split-wave64 GPU tests, main e429936 on NVIDIA: 3 e2e title tests and 6 split-wave64 GPU tests fail since #2959 #3093: main 336fddda gives 2122 passed, 9 failed, 48 ignored); the set of failing tests is identical to it.

  • console_device_slots_run_the_pc_method_of_their_run: ok in that run

Regression run

Current head 209d16a0, rebased onto main 765b2c5b on 2026-11-28 to resolve conflicts with main. RTX 2070 SUPER, the retail game, 60 s, XCL_PRESS_AT=25:A, XCL_PREPARE=0 (no startup shader preparation), release builds; each run started from a copy of the same DXIL cache (one queue job: main, then PR heads one after the other).

main:

xcl-smoke v1
commit: 7db2f391cefd748d47c7de63d50dd43ebb852185
gpu: NVIDIA GeForce RTX 2070 SUPER
title: retail game
seconds: 60
exit: 0x0
frames shown: 1530 (PresentX 1530)
presents per 2 s (last 3): 60 61 60
device removals: 0
crashes: 0
peak commit: 17023 MB

This PR's head:

xcl-smoke v1
commit: 209d16a02233676d3c53f518dfcb661c16c1e08d
gpu: NVIDIA GeForce RTX 2070 SUPER
title: retail game
seconds: 60
exit: 0x0
frames shown: 1523 (PresentX 1523)
presents per 2 s (last 3): 60 61 60
device removals: 0
crashes: 0
peak commit: 17234 MB

Not tested

  • Full preparation. The smoke runs used XCL_PREPARE=0.

  • A title calling any of the 20 slots: none is in the retail game's log.

  • A driver whose device is older than a remapped method: the slot keeps the "(not on PC)" stub it had.

  • AMD and Intel GPUs; wave64 hardware (the RTX 2070 SUPER is wave32).

AI use

  • Codex (exact model name unavailable) verified the queued smoke results and drafted this description update.

  • Claude Code, Claude Opus 5.5: the code and tests. The description and the test / suite runs: Claude Code, Claude Sonnet 5.5 and Claude Opus 5.5.

🤖 Generated with Claude Code

@Aniseto

Aniseto commented Nov 28, 2026

Copy link
Copy Markdown

Ran the console device-slot test at bfc6ffc6 on an NVIDIA Blackwell desktop part:

Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5, debug build.

XCL_ADAPTER=NVIDIA cargo test -p xcl --lib console_device_slots_run_the_pc_method_of_their_run -- --test-threads=1
1 passed; 0 failed; 0 ignored; 0 measured; 2025 filtered out      (exit 0)

The new test passes, covering the console device slots #83-#126 that run the PC's newer methods. It is a CPU-side vtable-routing test. The author's suite ran on an RTX 2070 SUPER; this adds a Blackwell desktop datapoint for the focused test. The PR has no comments yet.

Not tested: the full workspace suite here, a paired smoke run, a retail title, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game data.

AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.

@KOLESNiii
KOLESNiii marked this pull request as ready for review November 28, 2026 14:41
@KOLESNiii
KOLESNiii marked this pull request as draft November 28, 2026 16:39
…er device methods

After its own extensions, the console device vtable continues with the PC's newer device methods
in PC order, at a fixed distance per run: xcl-dev#83-xcl-dev#103 are PC xcl-dev#44-xcl-dev#64 (+39), xcl-dev#105-xcl-dev#107 PC xcl-dev#65-xcl-dev#67
(+40), xcl-dev#125/xcl-dev#126 PC xcl-dev#73/xcl-dev#74 (+52). The slots XCL already handles from title calls sit exactly
there: xcl-dev#86 CreatePipelineState, xcl-dev#108 GetResourceAllocationInfo2, xcl-dev#127 CreateCommittedResource3.
Every other slot fell into the console-extension stub, which answers S_OK and leaves the out
pointer untouched: a created object comes back NULL, SetEventOnMultipleFenceCompletion never
sets its event.

The 20 slots whose arguments are the PC's now go to that PC method through console_remap
(title calls only; the runtime keeps PC's), including XCL's wrappers of CreatePipelineLibrary,
SetResidencyPriority, EnqueueMakeResident, CreateStateObject and CreateShaderCacheSession. Slots
that take a resource or heap description (xcl-dev#92-xcl-dev#95, xcl-dev#109, xcl-dev#110, xcl-dev#112, xcl-dev#128, xcl-dev#129), CreateCommandList1
(xcl-dev#90), CreateCommandQueue1 (xcl-dev#124) and CreateSampler2 (xcl-dev#130) need console translation and stay
stubs here. The identities are from a console API audit; no log yet shows a title calling these.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@KOLESNiii
KOLESNiii force-pushed the d3d12x-device-tail-remap branch from bfc6ffc to 209d16a Compare November 28, 2026 19:57
@github-actions github-actions Bot added area:d3d12 D3D12.X runtime, command lists, resources, sparse memory gpu:both Code affects both AMD and NVIDIA GPUs (scope tag; see needs:*-test for remaining checks) labels Nov 28, 2026
@Foniass

Foniass commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Triage (#1607) – head 209d16a

No open or merged PR remaps these device slots. #3234 is about command-list #126/#127, not the device, and #3136 (same author) takes the complementary resource-method slots (#92-#95, #109, #110, #112, #128, #129), which DEVICE_REMAP correctly leaves out.
No problems found in the diff. The slot identities are unconfirmed, as the description says.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

@Foniass

Foniass commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Review (head 209d16a, diff read, not a merge-check; draft):

Fine: wired through console_remap, and the slots it leaves out match #3136's. Checks are green; the test counts are from bfc6ffc.

AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:d3d12 D3D12.X runtime, command lists, resources, sparse memory gpu:both Code affects both AMD and NVIDIA GPUs (scope tag; see needs:*-test for remaining checks)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants