Repository navigation
runtime: add unit test suite for console command list IID mapping (RT-XS-COMMAND-LIST-IID-COVERAGE) - #2039
Open
abnalstlll-byte wants to merge 1 commit into
Conversation
…-XS-COMMAND-LIST-IID-COVERAGE) Add standalone CPU-only unit test runtime/test/d3d12_xs_command_list_iid_test.cpp covering console command list IID mapping to PC ID3D12GraphicsCommandList6, classification of PC command list IIDs (is_pc_command_list_iid), and pass-through of PC and unknown IIDs. Register d3d12_xs_command_list_iid_test executable and CTest in runtime/CMakeLists.txt. AI-assisted (Claude Code)
Contributor
|
Verified on Windows 11 (
AI-assisted. |
Contributor
|
Verified by OreoFR
Note: shares AI-assisted (Claude Code, Claude Opus 5.5). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)