[PR #728] [CLOSED] d3d12_xs: fall back to ID3D12GraphicsCommandList on E_NOINTERFACE in CreateCommandListX (XS-CREATE-COMMAND-LIST-IID) #765

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/728
Author: @promise-ssss
Created: 11/24/2026
Status: ❌ Closed

Base: main ← Head: fix/xs-create-command-list-iid


📝 Commits (1)

  • df5505f d3d12_xs: fall back to ID3D12GraphicsCommandList on E_NOINTERFACE in CreateCommandListX (XS-CREATE-COMMAND-LIST-IID)

📊 Changes

1 file changed (+10 additions, -2 deletions)

View changed files

📝 runtime/shims/d3d12_xs_device.cpp (+10 -2)

📄 Description

Claimed in the coordination issue as: XS-CREATE-COMMAND-LIST-IID

What and why

In
untime/shims/d3d12_xs_device.cpp (proxy_create_command_list_x, slot 73), passing the caller's
iid directly to self->real->CreateCommandList(...) fails with E_NOINTERFACE when a console caller requests a console-only command-list IID not implemented by PC runtimes/layers (matching docs/retail_boot_chain.md §3.3).

When CreateCommandList returns E_NOINTERFACE (and *riid != IID_IUnknown), fall back to creating ID3D12GraphicsCommandList and wrapping it in ListProxy via wrap_list, without hardcoding any retail IID bytes.

Tested

  • ctest --test-dir runtime/build --output-on-failure -R d3d12_xs|xs_proxy: 6/6 passed (0.25 s)
  • gta6rt.exe --run (own 1.0.2.1 copy, Vulkan backend): CreateCommandListX now succeeds instead of failing at the first command list, advancing the D3D12 trace from 13 calls to 1,644 calls (1,619 ok).
  • python -I scripts/check_no_game_data.py runtime/shims/d3d12_xs_device.cpp: passed

GPUs tested: NVIDIA GeForce RTX 3060 Laptop GPU, Windows 11

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)

🔄 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/728 **Author:** [@promise-ssss](https://github.com/promise-ssss) **Created:** 11/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/xs-create-command-list-iid` --- ### 📝 Commits (1) - [`df5505f`](https://github.com/ubiquitarianism/leonida/commit/df5505f9b7fa0e3c9f3c9a259110ccefc71acf52) d3d12_xs: fall back to ID3D12GraphicsCommandList on E_NOINTERFACE in CreateCommandListX (XS-CREATE-COMMAND-LIST-IID) ### 📊 Changes **1 file changed** (+10 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `runtime/shims/d3d12_xs_device.cpp` (+10 -2) </details> ### 📄 Description Claimed in the coordination issue as: XS-CREATE-COMMAND-LIST-IID ### What and why In untime/shims/d3d12_xs_device.cpp (proxy_create_command_list_x, slot 73), passing the caller's iid directly to self->real->CreateCommandList(...) fails with E_NOINTERFACE when a console caller requests a console-only command-list IID not implemented by PC runtimes/layers (matching docs/retail_boot_chain.md §3.3). When CreateCommandList returns E_NOINTERFACE (and *riid != IID_IUnknown), fall back to creating ID3D12GraphicsCommandList and wrapping it in ListProxy via wrap_list, without hardcoding any retail IID bytes. ### Tested - `ctest --test-dir runtime/build --output-on-failure -R d3d12_xs|xs_proxy`: 6/6 passed (0.25 s) - `gta6rt.exe --run` (own 1.0.2.1 copy, Vulkan backend): CreateCommandListX now succeeds instead of failing at the first command list, advancing the D3D12 trace from 13 calls to 1,644 calls (1,619 ok). - `python -I scripts/check_no_game_data.py runtime/shims/d3d12_xs_device.cpp`: passed GPUs tested: NVIDIA GeForce RTX 3060 Laptop GPU, Windows 11 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) --- <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:58 +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#765
No description provided.