xcl run: say what the PC is missing before the game starts #114

Merged
gefydev merged 1 commit from upstream-pr/115 into main 2026-11-23 14:13:38 +00:00
gefydev commented 2026-11-23 12:58:40 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by gefydev on 2026-11-23T12:58:40Z.


With the exe out, most "black screen" reports will be a PC without DXC, without SM 6.6 (Windows 10 without the Agility SDK) or without mesh shaders. Today none of that shows on the console: each pipeline fails and it ends up in the log only.

xcl run now checks before starting the game, on the adapter the game will get (same selection as real::init: d3d12_adapter / XCL_ADAPTER, WARP fallback):

  • Shader Model 6.6 (error, with the Agility SDK hint from agility::format_no_sm66_message)
  • mesh shader tier (warning: geometry / NGG not drawn)
  • wave width (note when wave64 programs run as two 32-lane halves; error if neither 32 nor 64 is in range)
  • DXC (error: nothing is drawn)
  • System32\xgameruntime.dll (warning: install Gaming Services)

Each missing piece is printed with what to do, again after the game exits (the game's output scrolls the first one away), and kept in report.json as environment, so an issue with the report attached says what the PC has. The game still starts in every case. The check runs in the launcher process, so the game's own device is not touched.

On a GTX 1650 under Wine (vkd3d-proton), without DXC:

  GPU: NVIDIA GeForce GTX 1650 (4064 MiB VRAM)
  NOTE: waves of 32–32 lanes: the console's 64-lane programs run as two 32-lane halves (slower; vertex / pixel shaders that read lanes 32–63 can differ)
  ERROR: no DXC (dxcompiler.dll + dxil.dll): no shader can be compiled, the game draws nothing
           → install the Windows SDK, or put dxcompiler.dll and dxil.dll next to xcl.exe (or in %XCL_DXC_DIR%)
  WARNING: no System32\xgameruntime.dll: XCL's own XGameRuntime parts work, the rest (task queues, networking, dialogs) is missing
           → install Gaming Services (Microsoft Store)

The decisions are a pure function (preflight::checks) with unit tests for each case. Lib tests pass under Wine apart from the ones that also fail on main there (3 kernelx / VFS tests, and the vkd3d asserts on the D3D12.X hook). Not run on native Windows yet.

<!-- greyfinch-sync:ivall/xcl:issue:6559847499 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/115). Originally posted by [gefydev](https://github.com/gefydev) on 2026-11-23T12:58:40Z. --- With the exe out, most "black screen" reports will be a PC without DXC, without SM 6.6 (Windows 10 without the Agility SDK) or without mesh shaders. Today none of that shows on the console: each pipeline fails and it ends up in the log only. `xcl run` now checks before starting the game, on the adapter the game will get (same selection as `real::init`: `d3d12_adapter` / `XCL_ADAPTER`, WARP fallback): - Shader Model 6.6 (error, with the Agility SDK hint from `agility::format_no_sm66_message`) - mesh shader tier (warning: geometry / NGG not drawn) - wave width (note when wave64 programs run as two 32-lane halves; error if neither 32 nor 64 is in range) - DXC (error: nothing is drawn) - `System32\xgameruntime.dll` (warning: install Gaming Services) Each missing piece is printed with what to do, again after the game exits (the game's output scrolls the first one away), and kept in `report.json` as `environment`, so an issue with the report attached says what the PC has. The game still starts in every case. The check runs in the launcher process, so the game's own device is not touched. On a GTX 1650 under Wine (vkd3d-proton), without DXC: ``` GPU: NVIDIA GeForce GTX 1650 (4064 MiB VRAM) NOTE: waves of 32–32 lanes: the console's 64-lane programs run as two 32-lane halves (slower; vertex / pixel shaders that read lanes 32–63 can differ) ERROR: no DXC (dxcompiler.dll + dxil.dll): no shader can be compiled, the game draws nothing → install the Windows SDK, or put dxcompiler.dll and dxil.dll next to xcl.exe (or in %XCL_DXC_DIR%) WARNING: no System32\xgameruntime.dll: XCL's own XGameRuntime parts work, the rest (task queues, networking, dialogs) is missing → install Gaming Services (Microsoft Store) ``` The decisions are a pure function (`preflight::checks`) with unit tests for each case. Lib tests pass under Wine apart from the ones that also fail on `main` there (3 kernelx / VFS tests, and the vkd3d asserts on the D3D12.X hook). Not run on native Windows yet.
upstream-sync closed this pull request 2026-11-24 06:57:13 +00:00
ivall commented 2026-11-24 07:00:30 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ivall on 2026-11-23T14:14:04Z.


Merged – the check prints nicely on xcl run (GPU, DXC lines here). Checked on Windows 11 with an RX 9070 (RDNA4), merged together with the rest of #110–#129: cargo test --workspace green with the retail samples (shader pack, console DLLs, texture archive), lib tests also with XCL_SPLIT_WAVE64=1; the retail pack still translates 26 698 / 26 698; the FSR4 GPU probe passes; Unicorn Overlord and XDefiant run. Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7103685529 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/115#issuecomment-7103685529). Originally posted by [ivall](https://github.com/ivall) on 2026-11-23T14:14:04Z. --- Merged – the check prints nicely on `xcl run` (GPU, DXC lines here). Checked on Windows 11 with an RX 9070 (RDNA4), merged together with the rest of #110–#129: `cargo test --workspace` green with the retail samples (shader pack, console DLLs, texture archive), lib tests also with `XCL_SPLIT_WAVE64=1`; the retail pack still translates 26 698 / 26 698; the FSR4 GPU probe passes; Unicorn Overlord and XDefiant run. Thanks!
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!114
No description provided.