Skip to content

D3D12.X: console device #124 CreateCommandQueue1 creates a console queue - #3144

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

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

Conversation

@KOLESNiii

@KOLESNiii KOLESNiii commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Status: a guess that needs evidence before it can be merged. That console device slot #124 is CreateCommandQueue1 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::#124 in xcl.log and in report.json's stubs; an XCL_D3D12_TRACE=1 run of such a title shows its arguments (a queue desc, an IID and an out pointer). 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 CreateCommandQueue1 at #124 (PC #75), in the run of the PC's newer device

methods that ends with #127 CreateCommittedResource3. It fell into the console-extension stub, which

answers S_OK with the out pointer untouched: a title got a NULL queue. It now takes the console

queue path of #8 / #48 (console queue types, present tracking, queue adoption); the creator ID only

groups queues for the PC's scheduler and is dropped. The identity is from a console API audit; no

log yet shows a title calling it.

What is in it

  • crates/xcl/src/hle/d3d12x/device_x.rs: +7 / -0

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

  • new tests: console_device_124_creates_a_console_queue

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: d9a320690077ef3729e77fad1f042d5120421629

gpu: NVIDIA GeForce RTX 2070 SUPER

title: retail game

seconds: 60

exit: 0x0

frames shown: 1411 (PresentX 1411)

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

device removals: 0

crashes: 0

peak commit: 16912 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

@KOLESNiii
KOLESNiii marked this pull request as ready for review November 28, 2026 14:42
@KOLESNiii
KOLESNiii marked this pull request as draft November 28, 2026 16:40
@KOLESNiii
KOLESNiii force-pushed the d3d12x-device-tail-queue1 branch from d9a3206 to 8059a8f Compare November 28, 2026 18:09
…sole queue

The console device has CreateCommandQueue1 at xcl-dev#124 (PC xcl-dev#75), in the run of the PC's newer device
methods that ends with xcl-dev#127 CreateCommittedResource3. It fell into the console-extension stub, which
answers S_OK with the out pointer untouched: a title got a NULL queue. It now takes the console
queue path of xcl-dev#8 / xcl-dev#48 (console queue types, present tracking, queue adoption); the creator ID only
groups queues for the PC's scheduler and is dropped. The identity is from a console API audit; no
log yet shows a title calling it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-by: Codex (exact model unavailable)
@KOLESNiii
KOLESNiii force-pushed the d3d12x-device-tail-queue1 branch from 8059a8f to 76da16f Compare November 29, 2026 20:56
@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) needs-pr-check Failing the PR description check (CONTRIBUTING.md) labels Nov 29, 2026
@Foniass

Foniass commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Triage (#1607) – head 76da16f

No open or merged PR routes device #124. #3135 (same author) remaps the neighbouring #83-#126 device slots and leaves #124 out, so the two complement each other.
real.rs test console_device_124_creates_a_console_queue: the comment says #124 is at #127's distance from its PC slot, but 124-75 = 49 and 127-76 = 51. The test only checks table membership, not the placement claim.
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 76da16f, diff read, not a merge-check; draft, PR description red: the smoke block and counts name d9a3206):

Fine: on main #124 is a stub that returns S_OK with a null queue, so a title calling it fails anyway, and the PR reuses the existing #8 / #48 queue path. It complements #3135, which leaves #124 out.

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) needs-pr-check Failing the PR description check (CONTRIBUTING.md)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants