Launcher: explain when WARP is selected explicitly #915

Open
github-bot wants to merge 1 commit from github-bot/gh-915 into main AGit
Owner

@⁠MajorUnfazed on GitHub · 2026-11-24 08:12 UTC · original
MajorUnfazed:xcl-launcher-diagnostics → main · +17 −5 · 1 files · 1 commits · open

When XCL_ADAPTER=warp or d3d12_adapter = "warp" explicitly selects WARP, the launcher says no hardware D3D12 device was usable. In this case, the launcher skips probing hardware adapters. The warning now explains that WARP was selected in settings and tells users how to switch back to hardware rendering.

What is in it

  • crates/xcl/src/preflight.rs distinguishes an explicit WARP selection from automatic fallback and tests both messages.

Tested

  • GTX 1650 (4 GB), NVIDIA driver 621.24, i7-12700K, Windows build 26300.9974, Rust 1.100.0 MSVC, DXC 1.9.2602.17, debug build.
  • cargo build --workspace --locked --offline passed.
  • cargo test --workspace --locked --offline --no-fail-fast -- --test-threads=4 reported 716 passed, 0 failed, 41 ignored. Two native-wave64 GPU checks skipped and are included in the pass count.
  • Verified that xcl run with XCL_ADAPTER=warp prints the new warning. The synthetic title exited with an access violation under forced WARP on both the older launcher and the patched build.
    Regression run

@⁠eizispark ran both 60-second smoke tests on an AMD Radeon RX 9070 XT. Original test report

Main (beaa245)

xcl-smoke v1
commit: beaa245ca04e212f064efc7cafcdce104bc5c0a2
gpu: AMD Radeon RX 9070 XT
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1660 (PresentX 1660)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14862 MB

PR head (15a9aa3)

xcl-smoke v1
commit: 15a9aa3395efeafe5614ef65324715c5042de3f9
gpu: AMD Radeon RX 9070 XT
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1666 (PresentX 1666)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14859 MB

Not tested

  • My GTX 1650 run did not cover retail titles or native wave64 hardware. The retail smoke comparison above did not cover forced WARP or gameplay past the menus.

AI use

  • OpenAI Codex investigated the warning, wrote the patch and test assertions, ran validation, and drafted this description. Exact model name unavailable.
**@⁠MajorUnfazed** on GitHub · 2026-11-24 08:12 UTC · [original](https://github.com/xcl-dev/xcl/pull/915) `MajorUnfazed:xcl-launcher-diagnostics` → `main` · +17 −5 · 1 files · 1 commits · open When `XCL_ADAPTER=warp` or `d3d12_adapter = "warp"` explicitly selects WARP, the launcher says no hardware D3D12 device was usable. In this case, the launcher skips probing hardware adapters. The warning now explains that WARP was selected in settings and tells users how to switch back to hardware rendering. **What is in it** - `crates/xcl/src/preflight.rs` distinguishes an explicit WARP selection from automatic fallback and tests both messages. **Tested** - GTX 1650 (4 GB), NVIDIA driver 621.24, i7-12700K, Windows build 26300.9974, Rust 1.100.0 MSVC, DXC 1.9.2602.17, debug build. - `cargo build --workspace --locked --offline` passed. - `cargo test --workspace --locked --offline --no-fail-fast -- --test-threads=4` reported 716 passed, 0 failed, 41 ignored. Two native-wave64 GPU checks skipped and are included in the pass count. - Verified that `xcl run` with `XCL_ADAPTER=warp` prints the new warning. The synthetic title exited with an access violation under forced WARP on both the older launcher and the patched build. **Regression run** @⁠eizispark ran both 60-second smoke tests on an AMD Radeon RX 9070 XT. [Original test report](https://github.com/ivall/xcl/pull/915#issuecomment-7126322104) Main (`beaa245`) ``` xcl-smoke v1 commit: beaa245ca04e212f064efc7cafcdce104bc5c0a2 gpu: AMD Radeon RX 9070 XT title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1660 (PresentX 1660) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14862 MB ``` PR head (`15a9aa3`) ``` xcl-smoke v1 commit: 15a9aa3395efeafe5614ef65324715c5042de3f9 gpu: AMD Radeon RX 9070 XT title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1666 (PresentX 1666) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14859 MB ``` **Not tested** - My GTX 1650 run did not cover retail titles or native wave64 hardware. The retail smoke comparison above did not cover forced WARP or gameplay past the menus. **AI use** - OpenAI Codex investigated the warning, wrote the patch and test assertions, ran validation, and drafted this description. Exact model name unavailable.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:36:42 +00:00
Author
Owner

@⁠MajorUnfazed on GitHub · 2026-11-24 08:18 UTC · original

The Windows workspace tests passed on my GTX 1650. I don’t have an unpacked retail title for the required smoke comparison. Could someone with an XCL retail setup run scripts/smoke.ps1 on main and PR head 15a9aa3 using the same title and duration, then share both xcl-smoke blocks here?

**@⁠MajorUnfazed** on GitHub · 2026-11-24 08:18 UTC · [original](https://github.com/xcl-dev/xcl/pull/915#issuecomment-7125972631) The Windows workspace tests passed on my GTX 1650. I don’t have an unpacked retail title for the required smoke comparison. Could someone with an XCL retail setup run scripts/smoke.ps1 on main and PR head 15a9aa3 using the same title and duration, then share both xcl-smoke blocks here?
Author
Owner

@⁠eizispark on GitHub · 2026-11-24 08:35 UTC · original

Hardware check of 15a9aa3395efeafe5614ef65324715c5042de3f9 (verified clean merge with main 09940bb): pass.

Tested

  • Hardware: AMD Radeon RX 9070 XT (RDNA4, driver 32.0.32015.16001), AMD Ryzen 7 9800X3D, 32 GB RAM, Windows 11, rustc 1.100.0 (0ef1bc386 2026-11-09), release + test profile
  • cargo test --workspace --no-fail-fast -- --test-threads=4: 713 passed, 3 failed, 41 ignored (GPU tests skipped on this adapter: none). The 3 concurrent failures were hle::d3d12x::title_textures::tests::placed_title_textures_share_vram_and_preserve_pixels and 2 downstream PoisonErrors (transitions_apply_when_their_list_is_submitted, hle::d3d12x::vram::tests::d32s8_targets_take_their_own_size_of_video_memory); re-run serialized: cargo test -p xcl --lib hle::d3d12x::title_textures -- --test-threads=1 (13 passed, 0 failed), cargo test -p xcl --lib hle::d3d12x::vram -- --test-threads=1 (7 passed, 0 failed), and cargo test -p xcl --lib hle::d3d12x -- --test-threads=1 (114 passed, 1 failed, 1 ignored; mid_list_write64_wait64_split_avoids_cycle_and_reuses_spares passed in the workspace run and isolated 1 passed, 0 failed)
  • preflight::tests (6 passed, including warp_and_no_device covering both fallback WARP and explicit warp_requested) and all 16 non-ignored native/split wave64 GPU tests (gpu_dispatch_matches_native_wave64_reference, gpu_wave64_ps_whole_wave_reductions, gpu_wave64_vs_spill_slots_and_identity, gpu_wave64_ps_spill_slots, console_wave64_compute_through_the_pso_hook_dispatch_and_read_back, etc.) passed with 0 skips

Regression run
main (beaa245):

xcl-smoke v1
commit: beaa245ca04e212f064efc7cafcdce104bc5c0a2
gpu: AMD Radeon RX 9070 XT
title: GTA6.Xbox.v1.0.2.1
seconds: 60
exit: 0x0
frames shown: 1660 (PresentX 1660)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14862 MB

PR (15a9aa3):

xcl-smoke v1
commit: 15a9aa3395efeafe5614ef65324715c5042de3f9
gpu: AMD Radeon RX 9070 XT
title: GTA6.Xbox.v1.0.2.1
seconds: 60
exit: 0x0
frames shown: 1666 (PresentX 1666)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14859 MB

Not tested

  • wave32-only GPUs (NVIDIA / Intel); retail title launch under XCL_ADAPTER=warp; gameplay past the menus

AI use

  • Antigravity (Gemini 4 Carbon) ran the build, test suite, and scripts/smoke.ps1 harness on this machine and formatted this report.
**@⁠eizispark** on GitHub · 2026-11-24 08:35 UTC · [original](https://github.com/xcl-dev/xcl/pull/915#issuecomment-7126322104) Hardware check of `15a9aa3395efeafe5614ef65324715c5042de3f9` (verified clean merge with `main` `09940bb`): **pass**. **Tested** - Hardware: AMD Radeon RX 9070 XT (RDNA4, driver 32.0.32015.16001), AMD Ryzen 7 9800X3D, 32 GB RAM, Windows 11, `rustc 1.100.0 (0ef1bc386 2026-11-09)`, release + test profile - `cargo test --workspace --no-fail-fast -- --test-threads=4`: `713 passed, 3 failed, 41 ignored` (GPU tests skipped on this adapter: `none`). The 3 concurrent failures were `hle::d3d12x::title_textures::tests::placed_title_textures_share_vram_and_preserve_pixels` and 2 downstream `PoisonError`s (`transitions_apply_when_their_list_is_submitted`, `hle::d3d12x::vram::tests::d32s8_targets_take_their_own_size_of_video_memory`); re-run serialized: `cargo test -p xcl --lib hle::d3d12x::title_textures -- --test-threads=1` (`13 passed, 0 failed`), `cargo test -p xcl --lib hle::d3d12x::vram -- --test-threads=1` (`7 passed, 0 failed`), and `cargo test -p xcl --lib hle::d3d12x -- --test-threads=1` (`114 passed, 1 failed, 1 ignored`; `mid_list_write64_wait64_split_avoids_cycle_and_reuses_spares` passed in the workspace run and isolated `1 passed, 0 failed`) - `preflight::tests` (`6 passed`, including `warp_and_no_device` covering both fallback WARP and explicit `warp_requested`) and all 16 non-ignored native/split wave64 GPU tests (`gpu_dispatch_matches_native_wave64_reference`, `gpu_wave64_ps_whole_wave_reductions`, `gpu_wave64_vs_spill_slots_and_identity`, `gpu_wave64_ps_spill_slots`, `console_wave64_compute_through_the_pso_hook_dispatch_and_read_back`, etc.) passed with 0 skips **Regression run** `main` (`beaa245`): ``` xcl-smoke v1 commit: beaa245ca04e212f064efc7cafcdce104bc5c0a2 gpu: AMD Radeon RX 9070 XT title: GTA6.Xbox.v1.0.2.1 seconds: 60 exit: 0x0 frames shown: 1660 (PresentX 1660) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14862 MB ``` PR (`15a9aa3`): ``` xcl-smoke v1 commit: 15a9aa3395efeafe5614ef65324715c5042de3f9 gpu: AMD Radeon RX 9070 XT title: GTA6.Xbox.v1.0.2.1 seconds: 60 exit: 0x0 frames shown: 1666 (PresentX 1666) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14859 MB ``` **Not tested** - wave32-only GPUs (NVIDIA / Intel); retail title launch under `XCL_ADAPTER=warp`; gameplay past the menus **AI use** - Antigravity (Gemini 4 Carbon) ran the build, test suite, and `scripts/smoke.ps1` harness on this machine and formatted this report.
Author
Owner

@⁠SlopTart on GitHub · 2026-11-24 10:37 UTC · original

Linux / AMD RDNA3 datapoint.

Merged state: head 15a9aa3 onto main 6efdabc, clean merge.

Full suite, cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 720 passed, 7 failed, 41 ignored; failures are the known Wine-lane set from my #42 rows. WARP explicit-selection messaging green.

Not tested: retail titles (none here), Windows, RDNA4.
Counts only, no game data.

Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross x86_64-pc-windows-gnu, XCL_NETWORK=0, release profile, --test-threads=4. My Linux rows: #42 / #718.

AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.

**@⁠SlopTart** on GitHub · 2026-11-24 10:37 UTC · [original](https://github.com/xcl-dev/xcl/pull/915#issuecomment-7129024188) Linux / AMD RDNA3 datapoint. **Merged state:** head `15a9aa3` onto main `6efdabc`, clean merge. **Full suite, `cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4`:** **720 passed, 7 failed, 41 ignored**; failures are the known Wine-lane set from my #42 rows. WARP explicit-selection messaging green. **Not tested:** retail titles (none here), Windows, RDNA4. Counts only, no game data. **Machine:** RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross `x86_64-pc-windows-gnu`, `XCL_NETWORK=0`, release profile, `--test-threads=4`. My Linux rows: #42 / #718. AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 09:31 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 09:31 UTC · [original](https://github.com/xcl-dev/xcl/pull/915#issuecomment-7158436891) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
Author
Owner

@⁠upipibi on GitHub · 2026-11-26 04:40 UTC · original

NVIDIA test report for 15a9aa3: RTX 3070 8 GB (Ampere, driver 616.56), Windows 11 26100, Rust 1.100.0, debug.

  • cargo test --workspace --no-fail-fast -- --test-threads=4 --skip hle::xaudio2 (the hle::xaudio2 tests hang on this machine, on main too), after cargo build --workspace:
  • this PR: lib 663 passed, 3 failed, 21 ignored; 2 SKIPPED lines (both no wave64); e2e 3 passed (381 s); every other test binary passes (0 failed). preflight::tests::warp_and_no_device passes.
  • The 3 failures are not this PR's: hle::d3d12x::title_textures::tests::placed_title_textures_share_vram_and_preserve_pixels ("cubemap extra_pages must be reused at same va"), then transitions_apply_when_their_list_is_submitted and vram::tests::d32s8_targets_take_their_own_size_of_video_memory on the poisoned lock. The base 1c87b1d fails the same three in 2 of 3 lib runs; the head failed them in 2 of 3 too, and passed 666/0 once. title_textures alone with --test-threads=1 passes 13/13 on both.
  • One head run also failed list_x::tests::mid_list_write64_wait64_split_avoids_cycle_and_reuses_spares (E_INVALIDARG at list_x.rs:5731), once in 3 runs; I did not see it on the base in 3 runs, and this PR does not touch d3d12x.

Workspace tests only (the e2e tests use the repo's own test title); no game run.

AI-assisted (Claude Code, Claude Opus 5.5).

**@⁠upipibi** on GitHub · 2026-11-26 04:40 UTC · [original](https://github.com/xcl-dev/xcl/pull/915#issuecomment-7182796311) NVIDIA test report for `15a9aa3`: RTX 3070 8 GB (Ampere, driver 616.56), Windows 11 26100, Rust 1.100.0, debug. - `cargo test --workspace --no-fail-fast -- --test-threads=4 --skip hle::xaudio2` (the `hle::xaudio2` tests hang on this machine, on `main` too), after `cargo build --workspace`: - this PR: lib 663 passed, **3 failed**, 21 ignored; 2 SKIPPED lines (both `no wave64`); `e2e` 3 passed (381 s); every other test binary passes (0 failed). `preflight::tests::warp_and_no_device` passes. - The 3 failures are not this PR's: `hle::d3d12x::title_textures::tests::placed_title_textures_share_vram_and_preserve_pixels` ("cubemap extra_pages must be reused at same va"), then `transitions_apply_when_their_list_is_submitted` and `vram::tests::d32s8_targets_take_their_own_size_of_video_memory` on the poisoned lock. The base `1c87b1d` fails the same three in 2 of 3 lib runs; the head failed them in 2 of 3 too, and passed 666/0 once. `title_textures` alone with `--test-threads=1` passes 13/13 on both. - One head run also failed `list_x::tests::mid_list_write64_wait64_split_avoids_cycle_and_reuses_spares` (E_INVALIDARG at list_x.rs:5731), once in 3 runs; I did not see it on the base in 3 runs, and this PR does not touch d3d12x. Workspace tests only (the e2e tests use the repo's own test title); no game run. AI-assisted (Claude Code, Claude Opus 5.5).
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/915/head:github-bot/gh-915'
git switch 'github-bot/gh-915'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-915'
git switch 'github-bot/gh-915'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-915'
git switch 'github-bot/gh-915'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-915'
git switch 'main'
git merge --squash 'github-bot/gh-915'
git switch 'main'
git merge --ff-only 'github-bot/gh-915'
git switch 'main'
git merge 'github-bot/gh-915'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.