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

Open
KOLESNiii wants to merge 1 commit from upstream-pr/3135 into main
KOLESNiii commented 2026-11-28 13:01:25 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-28T13:01:25Z.


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 #1426, 1 no heap windows).

  • The 9 failures are the ones main has (3 e2e title tests and 6 split-wave64 GPU tests, #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

<!-- greyfinch-sync:ivall/xcl:issue:5540376103 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3135). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-28T13:01:25Z. --- **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 #1426, 1 no heap windows). - The 9 failures are the ones `main` has (3 `e2e` title tests and 6 split-wave64 GPU tests, #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](https://claude.com/claude-code)
Aniseto commented 2026-11-28 13:18:13 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-28T13:18:13Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7239839757 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3135#issuecomment-7239839757). Originally posted by [Aniseto](https://github.com/Aniseto) on 2026-11-28T13:18:13Z. --- 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.
Foniass commented 2026-12-01 09:33:53 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T09:33:53Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7306882963 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3135#issuecomment-7306882963). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T09:33:53Z. --- **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 commented 2026-12-01 10:22:24 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T10:22:24Z.


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

  • #125 / #126 break the PR's own rule. The known slot #127 (CreateCommittedResource3, PC #76) sits at +51. In PC order that makes #124 CreateShaderCacheSession (73), #125 ShaderCacheControl (74) and #126 CreateCommandQueue1 (75). The table instead puts #125 / #126 at +52 (real.rs ~1523-1524), with #124 as CreateCommandQueue1 (#3144), and the test asserts +51 and +52 side by side (~1538). If PC order holds, a title's ShaderCacheControl at #125 runs CreateShaderCacheSession with its first argument used as the desc pointer: an access violation where main answers S_OK.
  • None of the 20 slots is observed. HANDOFF records #86, #108 and #127 (plus #26, #70, #71 and #133). The offset goes from +39 to +40 between #86 and #108, so one slot is inserted somewhere in #87-#107, and the PR places it at #104 without evidence. If it's elsewhere, the slots between it and #104 each run their neighbour's method. RemoveDevice (#97) could be one of them, so leaving RemoveDevice, CreateLifetimeTracker and the meta-command slots unmapped until a title calls them would be safer. The description cites a "console API audit"; please say how it was done.
  • The test checks the table against the PR's own assumption, so it can't catch a wrong slot.

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

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

<!-- greyfinch-sync:ivall/xcl:comment:7308090230 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3135#issuecomment-7308090230). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T10:22:24Z. --- Review (head 209d16a0, diff read, not a merge-check; draft): - **#125 / #126 break the PR's own rule.** The known slot #127 (CreateCommittedResource3, PC #76) sits at +51. In PC order that makes #124 CreateShaderCacheSession (73), #125 ShaderCacheControl (74) and #126 CreateCommandQueue1 (75). The table instead puts #125 / #126 at +52 (`real.rs` ~1523-1524), with #124 as CreateCommandQueue1 (#3144), and the test asserts +51 and +52 side by side (~1538). If PC order holds, a title's ShaderCacheControl at #125 runs CreateShaderCacheSession with its first argument used as the desc pointer: an access violation where main answers S_OK. - **None of the 20 slots is observed.** HANDOFF records #86, #108 and #127 (plus #26, #70, #71 and #133). The offset goes from +39 to +40 between #86 and #108, so one slot is inserted somewhere in #87-#107, and the PR places it at #104 without evidence. If it's elsewhere, the slots between it and #104 each run their neighbour's method. RemoveDevice (#97) could be one of them, so leaving RemoveDevice, CreateLifetimeTracker and the meta-command slots unmapped until a title calls them would be safer. The description cites a "console API audit"; please say how it was done. - The test checks the table against the PR's own assumption, so it can't catch a wrong slot. Fine: wired through `console_remap`, and the slots it leaves out match #3136's. Checks are green; the test counts are from bfc6ffc6. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
KOLESNiii commented 2026-12-02 14:51:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-12-02T14:51:21Z.


Thanks for the review. Rebased onto main df0cfef6 with no conflicts; new head 32d7ad19. The #125 / #126 placement (+51 against +52, and how it fits #3144's #124) and leaving RemoveDevice / CreateLifetimeTracker / the meta-command slots unmapped are decisions for the PR author, so I have not changed the table. How the slot / field meanings were obtained is a question for the PR author, who will answer it here; I have not changed them. Suite and smoke are queued again.

— Claude Code (Claude Opus 5.5), on behalf of the PR author

<!-- greyfinch-sync:ivall/xcl:comment:7349252870 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3135#issuecomment-7349252870). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-12-02T14:51:21Z. --- Thanks for the review. Rebased onto `main` df0cfef6 with no conflicts; new head `32d7ad19`. The #125 / #126 placement (+51 against +52, and how it fits #3144's #124) and leaving RemoveDevice / CreateLifetimeTracker / the meta-command slots unmapped are decisions for the PR author, so I have not changed the table. How the slot / field meanings were obtained is a question for the PR author, who will answer it here; I have not changed them. Suite and smoke are queued again. — Claude Code (Claude Opus 5.5), on behalf of the PR author
Foniass commented 2026-12-02 14:56:27 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-02T14:56:27Z.


Follow-up review (head 32d7ad19, since 209d16a, diff read, not a merge-check; draft, checks red):

  • Earlier points: unchanged; git range-diff shows the commit identical to the previous head, so this push only rebases onto the current main.

New: none.

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

<!-- greyfinch-sync:ivall/xcl:comment:7349404668 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3135#issuecomment-7349404668). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-02T14:56:27Z. --- Follow-up review (head 32d7ad19, since 209d16a, diff read, not a merge-check; draft, checks red): - **Earlier points:** unchanged; `git range-diff` shows the commit identical to the previous head, so this push only rebases onto the current `main`. New: none. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3135:upstream-pr/3135'
git switch 'upstream-pr/3135'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3135'
git switch 'upstream-pr/3135'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3135'
git switch 'upstream-pr/3135'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3135'
git switch 'main'
git merge --squash 'upstream-pr/3135'
git switch 'main'
git merge --ff-only 'upstream-pr/3135'
git switch 'main'
git merge 'upstream-pr/3135'
git push origin 'main'
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!3135
No description provided.