Repository navigation
Conversation
|
Independent RTX 4060 (8 GB) / Windows 11 release verification of PR #2779 at Setup
Targeted Win11 / RTX 4060 release unit tests (
|
gut0to
left a comment
There was a problem hiding this comment.
AI-assisted review (OpenAI GPT-6). I checked the changed test against its stated contract; I did not run tests or the game.
| let mut b: Box<XAsyncBlock> = Box::new(std::mem::zeroed()); | ||
| b.callback = refused_cb as usize; | ||
| let before = REFUSED_CB.load(Ordering::SeqCst); | ||
| assert_eq!(begin(ui, &mut *b, args, args, args, args, args, args), S_OK, "{name}"); |
There was a problem hiding this comment.
Every Async slot is called with the same zero in all six trailing positions. A handler that accidentally depends on a pointer or takes a null/default branch can still pass, and identical values do not expose an argument-order mismatch. Could this fixture pass distinct scalar sentinels and distinct non-null invalid pointer sentinels, so the test proves these refused entry points depend only on the XAsyncBlock? AI-assisted review (OpenAI GPT-6); I checked the test contract in this diff and did not run tests or the game.
…ialized dispatch-on-caller, XGameUi refused dialogs) xcl-dev#2806: submit() merges serialized+manual into one enqueue+notify arm (worker spawn only for SERIALIZED, win64 twin keeps its terminating notify_all nuance); dispatch() also claims queued work for SERIALIZED ports. Test serialized_work_port_can_dispatch_on_the_caller ported with win64 ABI. xcl-dev#2779: ui_refused + xgameui_refused table (win64, xu::begin_with) into the GDK-thunk routing; XGameUi impls Vec::new() -> xgameui_refused(). Twin tests: unimplemented_slots now covers refused-completes-E_NOTIMPL plus a still-unimplemented slot; new refused_xgameui_dialogs test (no PC runtime / no ASYNC_TEST_LOCK on the twin).
XGameUi: handle the Xbox Live and account dialogs explicitly, completing with E_NOTIMPL
Seven XGameUi dialog types that need Xbox Live or an account (player picker, profile card, send
game invite, state share, multiplayer activity invite, achievements, web authentication; 17
entry points in all) were unknown slots on XCL's XGameUi class. They are now handled
explicitly: each
*Asynccompletes itsXAsyncBlockat once withE_NOTIMPL, and each*Resultreturns that status.What is in it
crates/xcl/src/hle/xgameruntime/api.rs:ui_refused,ui_refused_fns!andxgameui_refused()register the 17 functions on the XGameUi class (built on the existing
begin_withandempty_resulthelpers). The class'simplswas empty before.api.rsheader comment: says which XGameUi dialogs XCL refuses and which still go to the PC runtime.api.rstests: the newrefused_xgameui_dialogs_complete_with_e_notimpl_and_leave_outputs_alone,and the old
E_NOTIMPL+unimplementedassertion inthunk_protocol_with_xcl_objects_on_pc_queuesrewritten for the new behaviour.
HANDOFF.md(~L1029): its "not implemented in XCL classes" counts are now stale for thesefunctions. Left unedited, as the repository rules ask.
The 17 functions
Async entry points (8):
XGameUiShowAchievementsAsync,XGameUiShowPlayerPickerAsync,XGameUiShowPlayerProfileCardAsync,XGameUiShowSendGameInviteAsync,XGameUiShowStateShareAsync,XGameUiShowMultiplayerActivityGameInviteAsync,XGameUiShowWebAuthenticationAsync,XGameUiShowWebAuthenticationWithOptionsAsyncResult / status entry points (9):
XGameUiShowAchievementsResult,XGameUiShowPlayerPickerResultCount,XGameUiShowPlayerPickerResult,XGameUiShowPlayerProfileCardResult,XGameUiShowSendGameInviteResult,XGameUiShowStateShareResult,XGameUiShowMultiplayerActivityGameInviteResult,XGameUiShowWebAuthenticationResultSize,XGameUiShowWebAuthenticationResultBehaviour
*AsyncreturnsS_OK, completes the block withE_NOTIMPLand delivers the completioncallback once. It logs
XGameRuntime: <name> - no UI offline (completes with E_NOTIMPL).*Resultreturns the call's status (E_NOTIMPL) and does not write its outputarguments (counts, sizes, player ids, result pointer, buffer).
XAsyncBlock*; every GDK signature for thesefunctions has it first. The slot shims pass the remaining arguments through, which relies on
the Win64 caller cleaning up its stack, as
@'
XGameUi: handle the Xbox Live and account dialogs explicitly, completing with E_NOTIMPL
Seven XGameUi dialog types that need Xbox Live or an account (player picker, profile card, send
game invite, state share, multiplayer activity invite, achievements, web authentication; 17
entry points in all) were unknown slots on XCL's XGameUi class. They are now handled
explicitly: each
*Asynccompletes itsXAsyncBlockat once withE_NOTIMPL, and each*Resultreturns that status.What is in it
crates/xcl/src/hle/xgameruntime/api.rs:ui_refused,ui_refused_fns!andxgameui_refused()register the 17 functions on the XGameUi class (built on the existing
begin_withandempty_resulthelpers). The class'simplswas empty before.api.rsheader comment: says which XGameUi dialogs XCL refuses and which still go to the PC runtime.api.rstests: the newrefused_xgameui_dialogs_complete_with_e_notimpl_and_leave_outputs_alone,and the old
E_NOTIMPL+unimplementedassertion inthunk_protocol_with_xcl_objects_on_pc_queuesrewritten for the new behaviour.
HANDOFF.md(~L1029): its "not implemented in XCL classes" counts are now stale for thesefunctions. Left unedited, as the repository rules ask.
The 17 functions
Async entry points (8):
XGameUiShowAchievementsAsync,XGameUiShowPlayerPickerAsync,XGameUiShowPlayerProfileCardAsync,XGameUiShowSendGameInviteAsync,XGameUiShowStateShareAsync,XGameUiShowMultiplayerActivityGameInviteAsync,XGameUiShowWebAuthenticationAsync,XGameUiShowWebAuthenticationWithOptionsAsyncResult / status entry points (9):
XGameUiShowAchievementsResult,XGameUiShowPlayerPickerResultCount,XGameUiShowPlayerPickerResult,XGameUiShowPlayerProfileCardResult,XGameUiShowSendGameInviteResult,XGameUiShowStateShareResult,XGameUiShowMultiplayerActivityGameInviteResult,XGameUiShowWebAuthenticationResultSize,XGameUiShowWebAuthenticationResultBehaviour
*AsyncreturnsS_OK, completes the block withE_NOTIMPLand delivers the completioncallback once. It logs
XGameRuntime: <name> - no UI offline (completes with E_NOTIMPL).*Resultreturns the call's status (E_NOTIMPL) and does not write its outputarguments (counts, sizes, player ids, result pointer, buffer).
XAsyncBlock*; every GDK signature for thesefunctions has it first. The slot shims pass the remaining arguments through, which relies on
the Win64 caller cleaning up its stack, as the existing
completed()handlers do. That is anassumption about the existing dispatch machinery; no test isolates it.
Side effect on
report.jsonThese calls are no longer counted under
xgameruntime.unimplemented, because they are no longerunknown slots. Anyone using that list to find gaps will stop seeing them; the log line above is
the replacement.
Tested
stable-x86_64-pc-windows-msvc, rustc 1.100.0 (0ef1bc386 2026-11-09). Debug build for tests,
release build for smoke. The machine was not idle during the runs (browsers, capture and
chat apps were open).
58eb182.
cargo test --workspace -j 1 --no-fail-fast -- --test-threads=1: cargo exit 0;1,436 passed, 0 failed, 47 ignored (37 test binaries). The log has 45
SKIPPEDlines;those tests pass without running and are not coverage.
thunk_protocol_with_xcl_objects_on_pc_queues(existing, edited) covers 3:XGameUiShowAchievementsAsync,XGameUiShowAchievementsResultandXGameUiShowWebAuthenticationWithOptionsAsync. It runs on the PC runtime's queues.refused_xgameui_dialogs_complete_with_e_notimpl_and_leave_outputs_alone(new) covers all 17through their vtable slots on XCL's own queues. It checks
S_OKfrom each Async, onecompletion callback per call,
XAsyncGetStatus=E_NOTIMPL, every Result =E_NOTIMPL,untouched output buffers,
E_INVALIDARGfor a never-started block and for a null block.S_OK, and a missingWithOptionsregistration,each made the new test fail; both were reverted.
errors_propagate_and_release_active_state, not by the new test.Regression run
Same game folder, 60 seconds, same title for both.
mainfirst:This change:
Not tested
E_NOTIMPL(it may treat it as fatal rather than as a dismissed dialog).XGameUiSet*UIResponseandXGameUISetUICallbacks(not in thegenerated GDK table),
XGameProtocol*.gh pr list --state all --search "XGameUi"(5 results) and"E_NOTIMPL"(29 results, first 20 listed). I checked XGameRuntime: forward every IID of a forwarding class through its own clone (#2399) #2623, XGameRuntime: fix IUnknown/sibling QI and forwarding alias isolation #1610, Olympus: report implemented runtime features #12, XGameRuntime & advapi32legacy: UE4 startup, login, and hotfix parity #24, Small fixes found running the tests and the test title under Wine #270 and XGameRuntime: stub XSpeechToTextSetPositionHint to return S_OK #1537: none registers
handlers for these XGameUi functions. XGameRuntime & advapi32legacy: UE4 startup, login, and hotfix parity #24 (merged) added the test assertion this PR changes.
XGameRuntime: forward every IID of a forwarding class through its own clone (#2399) #2623, XGameRuntime: fix IUnknown/sibling QI and forwarding alias isolation #1610, Small fixes found running the tests and the test title under Wine #270 and XGameRuntime: stub XSpeechToTextSetPositionHint to return S_OK #1537 edit
api.rsand may need a rebase.AI use
Claude Code, model: not recorded. It wrote the handlers, the tests and a draft of this description, read the
function signatures from the public GDK reference, and ran the build and test commands. timesecay
reviewed the diff and is the author.