XGameRuntime: answer QueryInterface for IID_IUnknown on runtime objects #1615
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!1615
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1615"
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?
@OtavioTadeu on GitHub · 2026-11-24 18:15 UTC · original
OtavioTadeu:fix/xgameruntime-qi-iunknown-1488→main· +48 −2 · 1 files · 1 commits · openWhat is in it
XCL-BT-040(Part of #1488): acceptIID_IUnknown({00000000-0000-0000-C000-000000000046}) inhle::xgameruntime::api::query_interface, and clear*outwhen non-null before returningE_INVALIDARGorE_NOINTERFACE.query_interface_accepts_iunknownunit test covering non-main, built-in fallback, and main XGameRuntime COM objects.Tested
cargo test -p xcl --lib hle::xgameruntime::api: 17 passed, 0 failedcargo test --workspace -- --test-threads=4: 777 passed, 0 failed, 41 ignored (SKIPPED GPU tests: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])Regression run
scripts/smoke.ps1 -Game retail_title -Seconds 60(mainbaseline vs PR head on NVIDIA GeForce GTX 1660 SUPER):Not tested
AI use
IID_IUnknownhandling, unit test, and commit message; human reviewed.In hle::xgameruntime::api::query_interface, all XGameRuntime COM-style vtables (slot 0) checked only the class CLSID, known interface IIDs, or main-interface fallback and refused IID_IUnknown ({00000000-0000-0000-C000-000000000046}) on non-main interface objects (such as XUser gamertag, legacy XPackage/XSystem interfaces) and built-in fallback objects (XAsync, XAccessibility) with E_NOINTERFACE (XCL-BT-040 in #1488). Accept IID_IUnknown in query_interface and zero *out upfront when non-null (including on E_INVALIDARG/E_NOINTERFACE paths). Add query_interface_accepts_iunknown regression coverage across non-main, fallback, and main XGameRuntime objects. Verified locally with: cargo test -p xcl --lib hle::xgameruntime::api (17 passed, 0 failed) Assisted-by: Antigravity (Gemini 4 Neon)@futurepro62 on GitHub · 2026-11-24 18:57 UTC · original
Full-suite run, since this PR has no test report yet. Tested exact head
0272326(on its base9e3831e).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form: 776 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.query_interface_accepts_iunknown.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 777 passed, 0 failed, 41 ignored. SKIPPED:heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).heap_window_out_of_memory_falls_back_to_the_switch_formwas skipped with--skip. It fails on main9e3831etoo, not because of this PR: underXCL_REQUIRE_GPU=mesh,runner::skip_testturns every skip except "no wave64" into a failure, including this test's opt-in "no heap windows" skip (XCL_HEAP_WINDOWSunset). Reported as #1651.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-24 20:30 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.Thanks!
@throny on GitHub · 2026-11-25 03:01 UTC · original
Two contributors checked independently and found that #1610 solves the same problem (for #1488) in a different way: #1607, group D47. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.
This is a hint from the community triage in #1607, not a maintainer decision.
AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
@throny on GitHub · 2026-11-25 03:12 UTC · original
Two contributors checked independently and found that #1593 #1610 solves the same problem (for #1488) in a different way: #1607, group D57. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.
This is a hint from the community triage in #1607, not a maintainer decision.
AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
@JJAutoCompare on GitHub · 2026-11-25 05:02 UTC · original
XCL PR #1615 focused Windows verification
Tested clean detached head
027232617e7f3223e9bf97e55d822e7a490f1055on STOR-WINLAB. The PR changes onlycrates/xcl/src/hle/xgameruntime/api.rs.AMD Ryzen 7 3800X, Intel Arc A770 with driver 32.0.101.9175, Windows 11 Enterprise Evaluation build 26200 (10.0.26200), DXC 1.9.2609.5, and rustc 1.100.0 (0ef1bc386 2026-11-09, x86_64-pc-windows-msvc). Cargo used the dev and test profiles with debug info and incremental compilation disabled.
Tested
cargo build --workspacesucceeded.cargo test --workspace --no-runcompiled the workspace test executables.cargo test -p xcl --lib xgameruntime -- --nocapturewithXCL_ADAPTER=NONE_CPU_ONLYreported 74 passed, 0 failed, 0 ignored, 0 lines beginningSKIPPED, and 675 filtered out in 1.91 s. Counts were parsed frompr1615-focused.log. All three commands ran outside the Arc mutex.query_interface_accepts_iunknownpassed.IID_IUnknownreturnedS_OKand the same object pointer on main XUser, XSystem and XNetworking, three non-main XUser/XPackage/XSystem interfaces, and the XAsync and XAccessibility fallbacks. A null IID returnedE_INVALIDARGand cleared the output on all eight objects. An unsupported IID returnedE_NOINTERFACEand cleared the output on the five non-main and fallback objects.Not tested
Execution was limited to the focused XGameRuntime tests. The full GPU workspace suite and retail-title smoke runs were omitted. Two existing tests returned early and were counted as passes by the harness. Host-backed queue coverage requires System32\xgameruntime.dll, and default audio endpoint coverage requires an available endpoint.
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
pr1615-focused.logand published.github-bot referenced this pull request2026-11-26 06:18:30 +00:00
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.