mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:05:53 +01:00
[PR #2039] runtime: add unit test suite for console command list IID mapping (RT-XS-COMMAND-LIST-IID-COVERAGE) #2045
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#2045
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/2039
Author: @abnalstlll-byte
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:feat/rt-xs-command-list-iid-coverage📝 Commits (1)
c22177druntime: add unit test suite for console command list IID mapping (RT-XS-COMMAND-LIST-IID-COVERAGE)📊 Changes
2 files changed (+114 additions, -0 deletions)
View changed files
📝
runtime/CMakeLists.txt(+12 -0)➕
runtime/test/d3d12_xs_command_list_iid_test.cpp(+102 -0)📄 Description
Claimed in the coordination issue as: RT-XS-COMMAND-LIST-IID-COVERAGE (claim)
What and why
runtime/shims/d3d12_xs_command_list_iid.hprovides mapping for console command-list interface IDs passed to device slot 73 (CreateCommandListX). The console passes a specific GUID whose PC counterpart isID3D12GraphicsCommandList6(sharing identical first 32 bitsData1). Unmapped console IIDs fail on the PC device withE_NOINTERFACE.Previously,
d3d12_xs_command_list_iid.hhad no dedicated unit test.This adds
runtime/test/d3d12_xs_command_list_iid_test.cppverifying:kCommandListIidPairs&command_list_iid_for_pc:c3827890-4024-474c-98cf-645b51dc4874to PCID3D12GraphicsCommandList6(c3827890-e548-4cfa-96cf-5689a9370f80), verifying identicalData1and settingmapped == true.mapped == nullptr.is_pc_command_list_iid:ID3D12CommandList,ID3D12GraphicsCommandList, and 1 through 7) are recognized as PC IIDs.IUnknown,ID3D12Device,ID3D12Resource) and console IIDs.mapped == false).Registers
d3d12_xs_command_list_iid_testand CTest inruntime/CMakeLists.txt.Tested
24/24 checks passed(0 failures).python -I tests/test_ci_registration.py: 16/16 pass.python -I tests/test_text_write_line_endings.py: 3/3 pass.python -I scripts/check_no_game_data.py: clean (0 violations, no game data).AI-assisted (Claude Code)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.