Skip to content

xgameruntime_user: the resolve-issue calls complete their async block with the same error - #8673

Open
tedin7 wants to merge 4 commits into
ItsNotRexed:mainfrom
tedin7:c2-xuser-resolve-issue-async
Open

tedin7 wants to merge 4 commits into
ItsNotRexed:mainfrom
tedin7:c2-xuser-resolve-issue-async

Conversation

@tedin7

@tedin7 tedin7 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

What

Complete both XUser issue-resolution variants asynchronously with the existing offline error. AI-assisted.

Why

Synchronous failure prevented the XAsyncBlock callback from running. The test also checks that both result slots report E_PENDING before dispatch.

Tested

  • p2, xgameruntime_user_test: 0/59 failures, including both null-result and pre-dispatch checks. Negative control without the null guard: Wine reported a null-pointer page fault. No GPU required.
  • git diff --check and check_no_game_data.py on changed source files.

@ItsNotRexed: an exe PR, as you asked.

Claim: #8504 (comment)

@smowlyy

smowlyy commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Tested b13685892 on Windows 11 (10.0.26300.9974), MSVC 19.44, Ninja RelWithDebInfo (synthetic inputs only, no game files): pass.

  • cmake --build runtime/build --target xgameruntime_user_test: exit 0.
  • ctest --test-dir runtime/build -R xgameruntime_user --output-on-failure -V: 3/3 passed (xgameruntime_user, xgameruntime_user_gamertag, xgameruntime_user_gamertag_long — 0 of 57 checks failed in each, including the new manual-queue issue-resolution async/result/callback cases for slots 29–32).
  • python -I scripts/check_no_game_data.py runtime/shims/xgameruntime_user.cpp runtime/test/xgameruntime_user_test.cpp: exit 0.

AI-assisted.

@gut0to gut0to left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the two issue-resolution slots and their shared async identity/provider. The test verifies that startup leaves both result calls pending, Work dispatch completes the operation, and the callback runs only on Completion dispatch with the offline error returned from both result slots. Built xgameruntime_user_test with MSVC and CTest passed (1/1).

@BatSmacker84

Copy link
Copy Markdown

Tested 4bcb5a692 merged onto main 5d74c2723 on Windows 11 26200, MSVC 19.44 RelWithDebInfo (AMD Radeon RX 7800 XT, driver 26.11.2): pass.

  • All three xgameruntime_user ctest entries pass, 59 checks each.
  • With main's shim and this PR's tests, all three fail six issue-resolution checks each, so the tests cover the change.

AI-assisted: Codex GPT-6.2 Sol ran the tests, Claude Opus 5.5 reviewed the report. No game files used.

@comtek21516

Copy link
Copy Markdown

Tested 4bcb5a692 on main at 867d922f0, in one tree with #8281 and #8124 (three clean merges): pass.

For this change. xgameruntime_user (with the new resolve-issue cases), xgameruntime_user_gamertag and xgameruntime_user_gamertag_long pass natively and under Wine.

It conflicts with #8422 in runtime/test/xgameruntime_user_test.cpp (the two could not be merged into one tree here), so whichever lands second needs a rebase there.

Setup. Built with MSVC 14.52 (Visual Studio 18), Windows SDK 10.0.26100, Vulkan SDK 1.4.363.1, Ninja RelWithDebInfo on Windows Server 2025 (no Vulkan driver there), then the same binaries run through scripts/run_wine_tests.py under wine-11.0 (WineHQ stable, xvfb-run) on a Quadro RTX 4000 (Turing), NVIDIA 615.71.09, Ubuntu 22.04.5, where the layer tests report device: Quadro RTX 4000.

passed failed skipped
native Windows, this tree 150 4 124
Wine on the GPU, main 867d922f0 210 12 54
Wine on the GPU, this tree 214 11 54

Against main under Wine, the only differences are #8124's: its three new xs_console_slots* tests pass, and d3d12_vulkan_device goes from failed to passed. Every other test has the status it has on main. The four native failures are gameinput_host, d3d12_sparse_queue_family, vk_bindless_ps_tex and vk_bindless_ps_imgatomic, which fail the same way on main on that machine (#7452). The 11 left under Wine are host comparisons Wine cannot answer and d3d12_xdxr_rt, d3d12_indirect_rt, d3d12_indirect_dispatch_count, all failing on main too.

No game files used. AI-assisted (Claude Code).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants