[PR #359] [MERGED] d3d12_xs_device: slot 73 creates the console ID3D12GraphicsCommandListX IID as ID3D12GraphicsCommandList (RT-XS-DEVICE-STOPS-7-9) #411

Closed
opened 2026-11-26 20:17:48 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/359
Author: @Andretuta
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @ubiquitarianism

Base: main ← Head: feat/xs-device-stops-7-9


📝 Commits (5)

  • e7b32cd d3d12_xs_device: handle Xbox struct-return ABI (slots 25/26/58), slot 48 desc sanitize and slot 73 IID fallback (RT-XS-DEVICE-STOPS-7-9)
  • 1840c72 Merge remote-tracking branch 'ubiq/main' into feat/xs-device-stops-7-9
  • f423c90 d3d12_xs_device: slot 73 retries a console list IID as ID3D12GraphicsCommandList
  • d52ab6b d3d12_xs_device: map only the measured console list IID at slot 73
  • c170702 d3d12_xs_device: take #445's slot 73 mapping verbatim

📊 Changes

3 files changed (+52 additions, -4 deletions)

View changed files

📝 docs/retail_boot_chain.md (+1 -1)
📝 runtime/shims/d3d12_xs_device.cpp (+14 -3)
📝 runtime/test/xs_proxy_mock_test.cpp (+37 -0)

📄 Description

Claimed in the coordination issue as: RT-XS-DEVICE-STOPS-7-9 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7121196296)

What and why

Reduced after review to what current main does not already have. Slots 25/26 (the console's struct-return form) and 48 (CreateCommandQueueX descriptor sanitizing) landed on main in the meantime. The slot 58 forwarder is dropped: PC vtable slot 58 is ID3D12Device5::RemoveDevice, not GetResourceAllocationInfo1 (PC slot 56), and no call to Xbox slot 58 is measured.

  • Stop 9, CreateCommandListX (slot 73, docs/retail_boot_chain.md §3.3): the title passes the console ID3D12GraphicsCommandListX IID {c3827890-4024-474c-98cf-645b51dc4874} (measured in #445), which the PC device does not know. That IID is created as ID3D12GraphicsCommandList in one call and handed out as the console list proxy, which also answers QueryInterface for it. Every other IID goes to the device unchanged.
  • Fixed after review (ABI review): the first version retried any IID the device refused, so asking for a public list revision the backend lacks (ID3D12GraphicsCommandList9 on a revision-8 device) returned S_OK and a base list. It now returns E_NOINTERFACE with a null output again.

The slot 73 change in d3d12_xs_device.cpp is now #445's patch line for line, so the two merge cleanly in either order (checked with git merge-tree and a test build of both merged, where xs_proxy_mock and d3d12_vulkan_device pass). This PR adds the tests and the docs.

Tested

  • MSVC 14.44 / Windows SDK 10.0.26100: xs_proxy_mock and d3d12_vulkan_device pass under CTest. New slot-73 checks: ID3D12GraphicsCommandList9 and an unknown private IID keep E_NOINTERFACE with a null output and one device call; the console IID is created once as ID3D12GraphicsCommandList and is queryable on the proxy; a PC IID the device refuses is not retried. The ID3D12GraphicsCommandList9 check fails on the previous head.
  • Docs tests: 47 passed.
  • Not run against the retail title; reviewers' reports above cover the boot progress past slot 73.

GPUs tested: n/a (mock device)

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a)

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/359 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@ubiquitarianism](https://github.com/ubiquitarianism) **Base:** `main` ← **Head:** `feat/xs-device-stops-7-9` --- ### 📝 Commits (5) - [`e7b32cd`](https://github.com/ubiquitarianism/leonida/commit/e7b32cd9196611bd0eb606fe9c57e31cf9eead36) d3d12_xs_device: handle Xbox struct-return ABI (slots 25/26/58), slot 48 desc sanitize and slot 73 IID fallback (RT-XS-DEVICE-STOPS-7-9) - [`1840c72`](https://github.com/ubiquitarianism/leonida/commit/1840c7270696f33550556b041e3010b3153856cf) Merge remote-tracking branch 'ubiq/main' into feat/xs-device-stops-7-9 - [`f423c90`](https://github.com/ubiquitarianism/leonida/commit/f423c904624add9a6254ff97bc32feb1d42d44c3) d3d12_xs_device: slot 73 retries a console list IID as ID3D12GraphicsCommandList - [`d52ab6b`](https://github.com/ubiquitarianism/leonida/commit/d52ab6b5b3e77007e9811b494d93d618460a31c0) d3d12_xs_device: map only the measured console list IID at slot 73 - [`c170702`](https://github.com/ubiquitarianism/leonida/commit/c1707025a195cf02f4beff0c218d2c645b2ba158) d3d12_xs_device: take #445's slot 73 mapping verbatim ### 📊 Changes **3 files changed** (+52 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `docs/retail_boot_chain.md` (+1 -1) 📝 `runtime/shims/d3d12_xs_device.cpp` (+14 -3) 📝 `runtime/test/xs_proxy_mock_test.cpp` (+37 -0) </details> ### 📄 Description Claimed in the coordination issue as: RT-XS-DEVICE-STOPS-7-9 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7121196296) ### What and why Reduced after review to what current `main` does not already have. Slots 25/26 (the console's struct-return form) and 48 (`CreateCommandQueueX` descriptor sanitizing) landed on `main` in the meantime. The slot 58 forwarder is dropped: PC vtable slot 58 is `ID3D12Device5::RemoveDevice`, not `GetResourceAllocationInfo1` (PC slot 56), and no call to Xbox slot 58 is measured. - **Stop 9, `CreateCommandListX` (slot 73, `docs/retail_boot_chain.md` §3.3):** the title passes the console `ID3D12GraphicsCommandListX` IID `{c3827890-4024-474c-98cf-645b51dc4874}` (measured in #445), which the PC device does not know. That IID is created as `ID3D12GraphicsCommandList` in one call and handed out as the console list proxy, which also answers `QueryInterface` for it. Every other IID goes to the device unchanged. - **Fixed after review** ([ABI review](https://github.com/ubiquitarianism/leonida/pull/359#issuecomment-7123045445)): the first version retried any IID the device refused, so asking for a public list revision the backend lacks (`ID3D12GraphicsCommandList9` on a revision-8 device) returned `S_OK` and a base list. It now returns `E_NOINTERFACE` with a null output again. The slot 73 change in `d3d12_xs_device.cpp` is now #445's patch line for line, so the two merge cleanly in either order (checked with `git merge-tree` and a test build of both merged, where `xs_proxy_mock` and `d3d12_vulkan_device` pass). This PR adds the tests and the docs. ### Tested - MSVC 14.44 / Windows SDK 10.0.26100: `xs_proxy_mock` and `d3d12_vulkan_device` pass under CTest. New slot-73 checks: `ID3D12GraphicsCommandList9` and an unknown private IID keep `E_NOINTERFACE` with a null output and one device call; the console IID is created once as `ID3D12GraphicsCommandList` and is queryable on the proxy; a PC IID the device refuses is not retried. The `ID3D12GraphicsCommandList9` check fails on the previous head. - Docs tests: 47 passed. - Not run against the retail title; reviewers' reports above cover the boot progress past slot 73. GPUs tested: n/a (mock device) AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:17:48 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#411
No description provided.