D3D12.X: unknown_iids lists only the title's QueryInterface misses #1650
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1650
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1650"
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?
@M3lonade on GitHub · 2026-11-24 18:42 UTC · original
M3lonade:d3d12x-title-only-unknown-iids→main· +200 −7 · 4 files · 1 commits · openThe
unknown_iidslist in report.json (and the WARN "QueryInterface(…) – interface unknown on the PC (console-only?)") recorded every QueryInterface miss on an adopted D3D12 object, from any caller. For the retail title (1.0.2.1) all 13 listed IIDs come from the runtime, not the title: 11 in one burst while XCL creates its swap chain (DXGI probing the adopted queue: IDXGIDevice, IDXGIObject, ID3D11Device, ID3D11Debug, ID3D11On12Device, …), the others from D3D12. A byte search finds 12 of the 13 GUIDs nowhere in the game's executable or its 16 DLLs; the 13th, IDXGIDevice, is in the executable, but XCL already answers the title's request for it (dev_qi_x), so the listed miss was DXGI's. The list is meant as evidence of console-only interfaces the title asks for, and reports keep quoting these 13 (e.g. #534). Now only the title's misses are listed.What is in it
crates/xcl/src/hle/d3d12x/real.rs:guard::make_split(qi_override, PC method): calls from a game image are forwarded and a miss is listed (note_unknown_iid, factored out ofqi_override); the runtime's go straight to the PC method. The device's console split (dev_qi_x) wraps it as before.get_device_title): the PC answers it with the device's QueryInterface from inside D3D12, which is the runtime's side there.create_devicelists a miss of the title's riid.title_list.rs,dxgi_device.rs,shader_cache_session.rs: XCL's objects that pass the title's riid on from XCL's code list a miss themselves.real::unknown_iid_tests::query_interface_misses_are_listed_for_the_title_onlyandget_device_misses_are_listed_for_the_title_onlycall the slots both from the test (the runtime) and through a stub in memory registered as a game image. Hardware device or WARP, so they run without a GPU.title_list::tests::a_titles_query_interface_miss_through_a_console_list_is_listed,dxgi_device::tests::a_titles_query_interface_miss_through_the_dxgi_device_is_listed, and a check added toshader_cache_session::tests::rejected_create_shader_cache_session_falls_back_to_working_in_memory_session.note_unknown_iid) fails its test. Onmainthe #0 test fails with "a QueryInterface miss of the runtime was listed as the title's".Tested
cargo build --workspace+cargo test --workspace -- --test-threads=4: 780 passed, 0 failed, 41 ignored.gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask(no wave64),gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware(no wave64),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).d3d12.unknown_iids13 onmain9e3831e1, 0 with this change; the 13 WARN lines are gone, the swap chain is made as before.Regression run
main
9e3831e1:this PR
cd1b7681:Not tested
D3D12CreateDevice's note (create_device) has no test of its own.HANDOFF.md:334suspectsQueryInterface(0742a90b…)comes from the PC runtime: it does, and it is no longer logged.AI use
@DavidM1911 on GitHub · 2026-11-24 21:07 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
@JJAutoCompare on GitHub · 2026-11-25 04:55 UTC · original
XCL PR #1650 on Intel Arc A770
Clean detached head
cd1b76816aec8242ea94459c430c79f9d0d98c0don STOR-WINLAB. AMD Ryzen 7 3800X, Intel Arc A770 (driver 32.0.101.9175), Windows 11 x64 build 26200.9974, DXC 1.9.2609.5, rustc 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc). Dev and test profiles ran with debug info and incremental compilation disabled.Tested
cargo build --workspaceandcargo test --workspace --no-runsucceeded outside the Arc mutex. The latter built 19 test executables.cargo test -p xcl --lib a_titles_query_interface_miss_through_a_console_list_is_listed -- --nocapturepassed 1 test outside the mutex withXCL_ADAPTER=NONE_CPU_ONLY. The console-list wrapper recorded a forwarded title IID miss.Invoke-ArcTest.ps1withXCL_ADAPTER=A770,cargo test -p xcl --lib unknown_iid_tests -- --nocapturepassed 2 tests. An adopted D3D12 command allocator recorded title misses throughQueryInterfaceandGetDevice, excluded runtime misses, and returned the expected objects for supported IIDs.cargo test -p xcl --lib dxgi_device::tests -- --nocaptureandcargo test -p xcl --lib shader_cache_session::tests -- --nocaptureeach passed 1 test. They verified recording of a forwarded title miss through the DXGI device and the in-memory shader-cache session. Across all five focused tests there were zero failures, ignored tests, or skips.cargo test --workspace --no-fail-fast -- --test-threads=4ran once under the Arc mutex withXCL_ADAPTER=A770andRUST_TEST_NOCAPTURE=1. All five PR tests passed again.Workspace failures and skips
The suite exited 1. The 20
test result:lines inpr1650-suite.log(19 binaries plus doc-tests) sum to 764 passed, 16 failed, and 41 ignored. Six lines start withSKIPPEDand are excluded from coverage. The skip reasons were no wave64 (2), tiled resources tier below 2 (1), missing D3D12 debug layer (2), and no heap windows (1).Of the 15 recompiler unit failures, 11 reported
CreateComputePipelineStateerror0x80070057and four reported output mismatches. The e2e test failed itsRSSetDepthBiasXcheck (blue pixel, expected green).Not tested
Matched main baseline, retail-title smoke, or other GPU vendors. Regression status remains undetermined.
AI use
T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr1650-suite.logand published.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.