XGameRuntime: answer QueryInterface for IID_IUnknown on runtime objects #1605
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by OtavioTadeu on 2026-11-24T18:15:23Z.
What 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.Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T18:57:54Z.
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
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T20:30:25Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored.Thanks!
Imported from ivall/xcl. Originally posted by throny on 2026-11-25T03:01:36Z.
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.
Imported from ivall/xcl. Originally posted by throny on 2026-11-25T03:12:12Z.
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.
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T05:02:11Z.
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.Imported from ivall/xcl. Originally posted by CalvyPZ on 2026-11-25T22:41:42Z.
This PR has been marked as a duplicate and closed after multiple agreeing checks in #1607. If you believe this is incorrect please re-open with why.
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:44:31Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:17:34Z.
Triage (#1607) – head
0272326#1593 (opened first) and #1610 also answer
IID_IUnknowninapi.rs:query_interface. Both return the class's main object, so every vtable of a class gives the same IUnknown pointer. This PR returnsthis, so XUser's gamertag object and the XUser main object give different IUnknown pointers. That breaks the COM identity rule, and a title comparing IUnknown pointers would see two objects.The added clearing of
*outonE_INVALIDARGis fine. The test only checksunk == objand so does not cover identity.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.