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

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

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


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

  • 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

  • cargo test --workspace --no-fail-fast -- --test-threads=4 on d9a32069 (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_124_creates_a_console_queue: ok in that run

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

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

  • A title calling CreateCommandQueue1 (#124): none logged; the slot identity is from the audit.

  • 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:5540378864 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3144). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-28T13:01:48Z. --- **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** - 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 - `cargo test --workspace --no-fail-fast -- --test-threads=4` on `d9a32069` (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_124_creates_a_console_queue`: ok in that run **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** - Full preparation. The smoke runs used `XCL_PREPARE=0`. - A title calling CreateCommandQueue1 (#124): none logged; the slot identity is from the audit. - 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)
Foniass commented 2026-12-01 09:36:18 +00:00 (Migrated from github.com)

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


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.

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

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


Review (head 76da16f0, diff read, not a merge-check; draft, PR description red: the smoke block and counts name d9a32069):

  • The slot and its arguments aren't backed by an observation. The description cites a "console API audit" for #124 as CreateCommandQueue1 (desc, creator GUID, riid, out). Please say how it was done. The placement reasoning in the test comment (real.rs ~78) doesn't hold either: 124 - 75 = 49, but 127 - 76 = 51, and #3135's own table puts #125 / #126 at a distance of 52.
  • It switches the whole run's layout. note_newer_device_method(124) (device_x.rs ~93) turns on the newer queue and command-list layouts. HANDOFF records only #108, #127 and #133 as observed triggers. A title calling #124 on the older layout would get the wrong command-list slots everywhere if the guess is off.
  • The test only checks that the slot is in the table.

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.

<!-- greyfinch-sync:ivall/xcl:comment:7307790740 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3144#issuecomment-7307790740). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T10:10:45Z. --- Review (head 76da16f0, diff read, not a merge-check; draft, `PR description` red: the smoke block and counts name d9a32069): - **The slot and its arguments aren't backed by an observation.** The description cites a "console API audit" for #124 as CreateCommandQueue1 (desc, creator GUID, riid, out). Please say how it was done. The placement reasoning in the test comment (`real.rs` ~78) doesn't hold either: 124 - 75 = 49, but 127 - 76 = 51, and #3135's own table puts #125 / #126 at a distance of 52. - **It switches the whole run's layout.** `note_newer_device_method(124)` (`device_x.rs` ~93) turns on the newer queue and command-list layouts. HANDOFF records only #108, #127 and #133 as observed triggers. A title calling #124 on the older layout would get the wrong command-list slots everywhere if the guess is off. - The test only checks that the slot is in the table. 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.
KOLESNiii commented 2026-12-02 14:14:24 +00:00 (Migrated from github.com)

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


@Foniass you are right about the comment. It now says #124 is not derived from a known slot: #127 (CreateCommittedResource3, PC #76) sits 51 past its PC slot, and #124 would sit 49 past. New head e6f5d327 (rebased onto main df0cfef6). The slot itself, and that it switches the layout, are for the PR author. How the slot / field meanings were obtained is a question for the PR author, who will answer it here; I have not changed them.

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

<!-- greyfinch-sync:ivall/xcl:comment:7348215414 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3144#issuecomment-7348215414). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-12-02T14:14:24Z. --- @Foniass you are right about the comment. It now says #124 is not derived from a known slot: #127 (CreateCommittedResource3, PC #76) sits 51 past its PC slot, and #124 would sit 49 past. New head `e6f5d327` (rebased onto `main` df0cfef6). The slot itself, and that it switches the layout, are for the PR author. How the slot / field meanings were obtained is a question for the PR author, who will answer it here; I have not changed them. — Claude Code (Claude Opus 5.5), on behalf of the PR author
Foniass commented 2026-12-02 14:17:35 +00:00 (Migrated from github.com)

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


Follow-up review (head e6f5d327, since 76da16f, diff read, not a merge-check; draft, checks red):

  • Earlier points: unchanged in code; this push (a rebase) only rewords the comment on #124 (device_x.rs) to say the slot is assumed, not derived from a known one (the observed #127 sits 51 past its PC slot, #124 would sit 49 past), which matches the uncertainty in the description.

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:7348302996 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3144#issuecomment-7348302996). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-02T14:17:35Z. --- Follow-up review (head e6f5d327, since 76da16f, diff read, not a merge-check; draft, checks red): - **Earlier points:** unchanged in code; this push (a rebase) only rewords the comment on #124 (`device_x.rs`) to say the slot is assumed, not derived from a known one (the observed #127 sits 51 past its PC slot, #124 would sit 49 past), which matches the uncertainty in the description. 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/3144:upstream-pr/3144'
git switch 'upstream-pr/3144'

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