Skip to content

xcl run: without a D3D12 device the startup preparation ends the run (exit 2), so the e2e test title no longer runs on device-less lanes #2958

Backlog

Description

@Anon64

Since #2555, xcl run ends with exit code 2 when the startup shader preparation cannot create its pipeline device, before the title starts. On a machine with no usable D3D12 device the e2e test title therefore no longer runs, although the preparation is only there to save build time later.

Seen on main 8b957bec6f82495aec940944c6bf47faa02db590, Linux lane: Ubuntu 24.04 in Docker, WineHQ 11.0, Xvfb, no GPU in the container (so no vkd3d device and no WARP), x86_64-pc-windows-gnu debug.

cargo test -p xcl --target x86_64-pc-windows-gnu --test e2e test_title_runs_and_game_folder_is_untouched -- --nocapture
xcl: Shader preparation: No pipeline device: Call failed. (0x80004005)
xcl: No pipeline device: Call failed. (0x80004005)
Game exited with code 0x2 (2)
… panicked at crates/xcl/tests/e2e.rs:160:5: the test title did not run to the end

The other three e2e tests pass on the same tree. Windows CI does not see this because WARP gives it a device.

Where: hle::d3d12x::present::preparation::before_guest returns the error from shaders::prepare_for_launch → precompile → Pipelines::for_adapter, and host.rs (if let Err(e) = …before_guest(&boot) { …; return 2; }) ends the run on any preparation error.

Proposal (asking before writing it): when the pipeline device cannot be created, log it and start the title without the preparation, as graphics = "null" already does; keep the other errors (a bad pack, cancel) fatal as now. The title then fails or not on its own device creation, as before #2555. Alternatively the e2e test could skip when no D3D12 device exists, but that would drop the e2e run from device-less lanes.

Not checked: whether a real GPU machine can reach this path (e.g. a driver that refuses the second device while another process holds one).

AI use: Claude Code (Claude Opus 5.5) ran the tests, traced the path and wrote this issue.

Activity

  1. Anon64 commented on Nov 27, 2026

    @Anon64
    Author

    Related: 8617577b on main adds XCL_PREPARE=0, which leaves the preparation out. That gives device-less lanes a way to run the title (the e2e test could set it), but the default still ends with exit code 2 when no pipeline device can be created, so this issue still stands for a plain xcl run without a usable D3D12 device. I have not rerun the Wine lane on 8617577b yet.

    AI use: Claude Code (Claude Opus 5.5) read the commit and wrote this comment.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions