D3D12.X: console device slots #83-#126 run the PC's newer device methods #3135
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3135"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
mainthis slot is a logged stub, so a title that calls it showsID3D12Device::#<slot>inxcl.logand inreport.json's stubs; anXCL_D3D12_TRACE=1run 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 / -0new tests:
console_device_slots_run_the_pc_method_of_their_runTested
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 ontomain765b2c5bto 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=4onbfc6ffc6(built onmain336fddda; it merges into the currentmaine429936cwithout conflict): 2123 passed, 9 failed, 48 ignored, 25SKIPPEDlines (21 no wave64, 3 #1426, 1 no heap windows).The 9 failures are the ones
mainhas (3e2etitle tests and 6 split-wave64 GPU tests, #3093:main336fdddagives 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 runRegression run
Current head
209d16a0, rebased ontomain765b2c5bon 2026-11-28 to resolve conflicts withmain. 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:This PR's head:
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
Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-28T13:18:13Z.
Ran the console device-slot test at
bfc6ffc6on 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.
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.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T09:33:53Z.
Triage (#1607) – head
209d16aNo 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_REMAPcorrectly 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.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T10:22:24Z.
Review (head
209d16a0, diff read, not a merge-check; draft):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.Fine: wired through
console_remap, and the slots it leaves out match #3136's. Checks are green; the test counts are frombfc6ffc6.AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-12-02T14:51:21Z.
Thanks for the review. Rebased onto
maindf0cfef6with no conflicts; new head32d7ad19. 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
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-02T14:56:27Z.
Follow-up review (head
32d7ad19, since209d16a, diff read, not a merge-check; draft, checks red):git range-diffshows the commit identical to the previous head, so this push only rebases onto the currentmain.New: none.
AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.