mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:55:52 +01:00
[PR #728] [CLOSED] d3d12_xs: fall back to ID3D12GraphicsCommandList on E_NOINTERFACE in CreateCommandListX (XS-CREATE-COMMAND-LIST-IID) #765
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#765
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
df5505fd3d12_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: passedGPUs tested: NVIDIA GeForce RTX 3060 Laptop GPU, Windows 11
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).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.