Skip to content

D3D12.X: console device slots for the *1 / *2 resource methods use the console's descriptions - #3136

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

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

Conversation

@KOLESNiii

@KOLESNiii KOLESNiii commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Status: a guess that needs evidence before it can be merged. Which resource / heap methods device slots #92-#95, #109, #110, #112, #128 and #129 are, and that they take the console's resource description 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::#92 in xcl.log and in report.json's stubs; an XCL_D3D12_TRACE=1 run of such a title shows its arguments (and the other slots); a desc whose bytes read as the console's resource desc, not the PC's, confirms it. 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).

The console device has the PC's newer device methods at fixed distances from their PC slots

(#86, #108 and #127 are handled there already). Its resource and heap variants fell into the

console-extension stub, which answers S_OK with the out pointer untouched, so a title got a NULL

resource or heap, or no size, back:

#92 CreateCommittedResource1 #93 CreateHeap1 #94 CreateReservedResource1

#95 GetResourceAllocationInfo1 #109 CreateCommittedResource2 #110 CreatePlacedResource1

#112 GetCopyableFootprints1 #128 CreatePlacedResource2 #129 CreateReservedResource2

Each now hands its console description to the console method of its base form (#27, #28, #30,

#25, #29, #38): a DESC1's first 0x38 bytes are the console resource desc, a barrier layout

becomes the state it starts in (as #127 / #133), and a protected session or castable formats are

dropped. #95 shares #108's per-description loop, with its own stride (0x38 rather than 0x48).

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/device_x.rs: +84 / -1

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

  • new tests: newer_allocation_info_reads_each_description_at_its_stride

Tested

Regression run

Both 60-second runs used the same warm DXIL cache directory.


xcl-smoke v1

commit: 336fdddafbcb3c3db753629f5f79a9f44b6c4b9d

gpu: NVIDIA GeForce RTX 2070 SUPER

title: retail game

seconds: 60

exit: 0x0

frames shown: 1228 (PresentX 1228)

presents per 2 s (last 3): 61 60 60

device removals: 0

crashes: 0

peak commit: 15234 MB


xcl-smoke v1

commit: 172b0bd6202b8ec184b81f2c34ea6ffc8715b9d0

gpu: NVIDIA GeForce RTX 2070 SUPER

title: retail game

seconds: 60

exit: 0x0

frames shown: 1396 (PresentX 1396)

presents per 2 s (last 3): 62 60 60

device removals: 0

crashes: 0

peak commit: 15906 MB

Not tested

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

…e console's descriptions

The console device has the PC's newer device methods at fixed distances from their PC slots
(xcl-dev#86, xcl-dev#108 and xcl-dev#127 are handled there already). Its resource and heap variants fell into the
console-extension stub, which answers S_OK with the out pointer untouched, so a title got a NULL
resource or heap, or no size, back:

  xcl-dev#92 CreateCommittedResource1   xcl-dev#93 CreateHeap1               xcl-dev#94 CreateReservedResource1
  xcl-dev#95 GetResourceAllocationInfo1 xcl-dev#109 CreateCommittedResource2 xcl-dev#110 CreatePlacedResource1
  xcl-dev#112 GetCopyableFootprints1    xcl-dev#128 CreatePlacedResource2    xcl-dev#129 CreateReservedResource2

Each now hands its console description to the console method of its base form (xcl-dev#27, xcl-dev#28, xcl-dev#30,
xcl-dev#25, xcl-dev#29, xcl-dev#38): a DESC1's first 0x38 bytes are the console resource desc, a barrier layout
becomes the state it starts in (as xcl-dev#127 / xcl-dev#133), and a protected session or castable formats are
dropped. xcl-dev#95 shares xcl-dev#108's per-description loop, with its own stride (0x38 rather than 0x48).
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>
@Foniass

Foniass commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Triage (#1607) – head 172b0bd

No open or merged PR handles device #92-#95, #109, #110, #112, #128 or #129. #3135 (same author) remaps the non-resource slots of the same runs and does not overlap. #3161 covers #45/#77/#82 only.
No problems found in the diff. The argument lists match the PC's CreateCommittedResource1/2, CreateHeap1, CreateReservedResource1/2 and CreatePlacedResource1/2, and #108 keeps its 0x48 stride through allocation_info_each.
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 172b0bd, diff read, not a merge-check; draft; CI hasn't run on this head (action_required)):

Fine: the argument lists match the PC signatures, and reading the first 0x38 bytes of a DESC1 fits the 0x48 stride observed at #108.

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants