[PR #641] [CLOSED] d3d12_xs: restore the console command-list IID mapping lost in a merge #680

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/641
Author: @ExCorvus
Created: 11/24/2026
Status: ❌ Closed

Base: main ← Head: restore/console-list-iid-mapping


📝 Commits (1)

  • 2f41bb1 d3d12_xs: restore the console command-list IID mapping lost in a merge

📊 Changes

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

View changed files

➕ runtime/shims/d3d12_xs_command_list_iid.h (+68 -0)
📝 runtime/shims/d3d12_xs_device.cpp (+9 -4)
📝 runtime/test/xs_proxy_mock_test.cpp (+16 -0)

📄 Description

d3d12_xs: restore the console command-list IID mapping lost in a merge

Claimed in the coordination issue as: none exists yet — this PR is the claim, as with PR #2.
Relates to issue #47 (the boot ladder): the command-list IID wall its comments name after the
slot-26 and copy-queue stops.

AI-assisted: yes (Qwen4 Max Preview / Alibaba Token Plan).

What and why

3c95a4a95 ("d3d12_xs: map the console list IID in QI and CreateCommandListX") added
runtime/shims/d3d12_xs_command_list_iid.h — the measured console→PC IID pair for device
slot 73 — and wired it into list_query_interface and the slot-73 path. The commit is an
ancestor of main, but the header is not in the tree
(git ls-tree main -- runtime/shims/d3d12_xs_command_list_iid.h is empty) and both wiring points forward the
requested IID unchanged again. A later merge dropped them — the same loss pattern PR #131
restored for the DirectStorage shim.

The retail executable asks slot 73 (CreateCommandListX) for the console command-list IID
c3827890-4024-474c-98cf-645b51dc4874. Unmapped, the PC CreateCommandList refuses it
(the Vulkan layer logs QueryInterface: unknown IID), the slot returns a failing HRESULT,
and the title asserts on it — a fatal int3 right after the call, confirmed statically with
tools/int3_cause.py (the assert branches on the slot-73 result's sign).

The change

  • Restore the header byte-for-byte from 3c95a4a95 (blob fc149cea9); its provenance
    notes (TomBox GPL-3.0 measurement, Windows SDK 10.0.26100.0) stay intact.
  • Map the requested IID through command_list_iid_for_pc in list_query_interface and in
    the slot-73 CreateCommandList call, adapted to the current ListProxy: wrap_list QIs
    through list_query_interface, so the wrapped proxy answers the console IID as well.
  • xs_proxy_mock_test: a console-IID slot-73 case asserts the mapped PC IID
    (ID3D12GraphicsCommandList6) reaches CreateCommandList and the proxy's QI answers the
    console IID.

No behavior change for PC IIDs or IIDs outside the table (forwarded unchanged, logged once,
as the original header documents).

Tested

Host: Windows 11, AMD Radeon RX 9070 XT, driver 32.0.32029.2010, LEONIDA_D3D12=vulkan.

  • xs_proxy_mock_test builds and exits 0 with the new case.
  • gta6rt --run on my own 1.0.2.1 package (108/108 files SHA-256 verified), main
    8f481cf16 + this change (the three touched files are byte-identical at 21625bca8):
    • Before: 13 D3D12 calls; CreateCommandList refuses the console IID; the title's
      fatal assert ends the run ~2.2 s in.
    • After: 1,639 D3D12 calls — command lists, ~1,600 allocators, slot 25
      GetResourceAllocationInfo, slot 127 CreateCommittedResource3, SRV/RTV/UAV creation —
      before the next, unrelated assert (a bounds check on a title global; a new rung on the
      #47 ladder, not a regression).
  • The restore applies cleanly on 21625bca8; the header is byte-identical to the 3c95a4a95
    blob. If main moves again, the two wiring points are small and local.
  • Not tested: Wine, other GPUs, a full retail boot (the project does not boot yet).

Checklist

  • No game data, keys or decryption in the diff, tests or this description (call shapes,
    export names and counts only; the IID is a public-interface identifier already named
    in 3c95a4a95's public commit message).
  • No new translator rule (not applicable).
  • Restored code keeps its original provenance comments; no GPL-incompatible 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/641 **Author:** [@ExCorvus](https://github.com/ExCorvus) **Created:** 11/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `restore/console-list-iid-mapping` --- ### 📝 Commits (1) - [`2f41bb1`](https://github.com/ubiquitarianism/leonida/commit/2f41bb1639646c4f3aa545ca6f482372cb552a91) d3d12_xs: restore the console command-list IID mapping lost in a merge ### 📊 Changes **3 files changed** (+93 additions, -4 deletions) <details> <summary>View changed files</summary> ➕ `runtime/shims/d3d12_xs_command_list_iid.h` (+68 -0) 📝 `runtime/shims/d3d12_xs_device.cpp` (+9 -4) 📝 `runtime/test/xs_proxy_mock_test.cpp` (+16 -0) </details> ### 📄 Description # d3d12_xs: restore the console command-list IID mapping lost in a merge Claimed in the coordination issue as: **none exists yet** — this PR is the claim, as with PR #2. Relates to issue #47 (the boot ladder): the command-list IID wall its comments name after the slot-26 and copy-queue stops. AI-assisted: yes (Qwen4 Max Preview / Alibaba Token Plan). ## What and why `3c95a4a95` ("d3d12_xs: map the console list IID in QI and CreateCommandListX") added `runtime/shims/d3d12_xs_command_list_iid.h` — the measured console→PC IID pair for device slot 73 — and wired it into `list_query_interface` and the slot-73 path. **The commit is an ancestor of main, but the header is not in the tree** (`git ls-tree main -- runtime/shims/d3d12_xs_command_list_iid.h` is empty) and both wiring points forward the requested IID unchanged again. A later merge dropped them — the same loss pattern PR #131 restored for the DirectStorage shim. The retail executable asks slot 73 (`CreateCommandListX`) for the console command-list IID `c3827890-4024-474c-98cf-645b51dc4874`. Unmapped, the PC `CreateCommandList` refuses it (the Vulkan layer logs `QueryInterface: unknown IID`), the slot returns a failing HRESULT, and the title asserts on it — a fatal `int3` right after the call, confirmed statically with `tools/int3_cause.py` (the assert branches on the slot-73 result's sign). ## The change - Restore the header **byte-for-byte** from `3c95a4a95` (blob `fc149cea9`); its provenance notes (TomBox GPL-3.0 measurement, Windows SDK 10.0.26100.0) stay intact. - Map the requested IID through `command_list_iid_for_pc` in `list_query_interface` and in the slot-73 `CreateCommandList` call, adapted to the current `ListProxy`: `wrap_list` QIs through `list_query_interface`, so the wrapped proxy answers the console IID as well. - `xs_proxy_mock_test`: a console-IID slot-73 case asserts the mapped PC IID (`ID3D12GraphicsCommandList6`) reaches `CreateCommandList` and the proxy's QI answers the console IID. No behavior change for PC IIDs or IIDs outside the table (forwarded unchanged, logged once, as the original header documents). ## Tested Host: Windows 11, AMD Radeon RX 9070 XT, driver `32.0.32029.2010`, `LEONIDA_D3D12=vulkan`. - `xs_proxy_mock_test` builds and exits 0 with the new case. - `gta6rt --run` on my own 1.0.2.1 package (108/108 files SHA-256 verified), main `8f481cf16` + this change (the three touched files are byte-identical at `21625bca8`): - **Before:** 13 D3D12 calls; `CreateCommandList` refuses the console IID; the title's fatal assert ends the run ~2.2 s in. - **After:** 1,639 D3D12 calls — command lists, ~1,600 allocators, slot 25 `GetResourceAllocationInfo`, slot 127 `CreateCommittedResource3`, SRV/RTV/UAV creation — before the next, unrelated assert (a bounds check on a title global; a new rung on the #47 ladder, not a regression). - The restore applies cleanly on `21625bca8`; the header is byte-identical to the `3c95a4a95` blob. If main moves again, the two wiring points are small and local. - Not tested: Wine, other GPUs, a full retail boot (the project does not boot yet). ## Checklist - [x] No game data, keys or decryption in the diff, tests or this description (call shapes, export names and counts only; the IID is a public-interface identifier already named in `3c95a4a95`'s public commit message). - [x] No new translator rule (not applicable). - [x] Restored code keeps its original provenance comments; no GPL-incompatible 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:18:41 +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#680
No description provided.