These are scripts and patches to run XCL, the Xbox Series (GDK) compatibility layer for Windows, on Linux. It runs through Proton Experimental's Wine, vkd3d-proton (D3D12 → Vulkan) and DXVK's DXGI. Everything here was tested on one machine with an NVIDIA card.
This repository contains no game files. You need a dump of your own copy. The game folder is only read and never changed.
The retail title we tested (build 1.0.2.1) is not playable on Linux yet. What works so far:
- It boots and shows its menus and loading screens at a steady 30 fps.
- Our longest run lasted 206 s, before the steps described below.
- Around 90 s in, the title builds large compute pipelines on its own threads, 5–36 s each. No frame comes out while they build, and the title's watchdog ends the process. Two things in this repository address that:
precompile.shbuilds those pipelines ahead of time.XCL_NO_TITLE_WATCHDOG=1turns the watchdog off.
- Neither has been measured in a full game run yet.
| OS | Fedora 45, kernel 7.3 |
| CPU / RAM | AMD Ryzen 7 9700X, 30 GB |
| GPU | NVIDIA RTX 4070 SUPER 12 GB, driver 620.70 (open kernel module) |
| Wine | Proton Experimental (Wine 11) from Steam, with its DXVK |
| vkd3d-proton | built from Proton's commit 2576c0b4 with patches/vkd3d-proton-2576c0b4-xcl.patch |
| XCL | xcl-dev/xcl at c160d86 with patches/xcl-c160d86-linux.patch, cross-built for x86_64-pc-windows-gnu |
| DXC | DirectX Shader Compiler 1.9.2609 for Windows |
AMD cards and other distributions have not been tested.
| File | What it does |
|---|---|
config.sh |
Sets the paths every script uses: XCL_DIR, GAME_DIR, PROTON. |
wine-run.sh |
Runs a Windows program in this folder's own Wine prefix, with the shader cache settings below. |
setup-prefix.sh |
Creates the prefix and copies in vkd3d-proton's d3d12 / d3d12core and DXVK's dxgi / d3d11. |
run-game.sh |
Runs the title through XCL with the network off. |
precompile.sh, watch-precompile.sh |
Builds the compute pipelines ahead of time, with a live view. |
run-tests.sh |
Runs XCL's test suite under Wine and writes a report. |
tools/game-run.sh, tools/watch-game.sh |
A capped game run with a summary, and a live view of it. |
tools/crumbs-run.sh, tools/vkd3d-hash.c |
Finds which shader hung the GPU, using vkd3d-proton breadcrumbs from a debug build. |
tools/dxilspv-check.cpp, tools/run-dxilspv-check.sh |
Runs DXIL files through dxil-spirv one at a time, to find the ones it crashes or hangs on. |
lists/direct-deny.txt |
102 compute programs that go through XCL's HLSL path instead of direct DXIL. |
lists/skip-cs-giants.txt |
3 very large compute programs that are not built at all. |
patches/ |
The changes to vkd3d-proton and to XCL. |
The commands below expect this layout, next to each other: this repository, xcl/ (the XCL checkout) and game/ (your dump). Set XCL_DIR or GAME_DIR to use other places.
-
Packages (Fedora):
sudo dnf install rust cargo rust-std-static-x86_64-pc-windows-gnu mingw64-gcc mingw64-gcc-c++ mingw64-winpthreads-static meson ninja-build glslang wine-devel
wine-develis only needed forwidl, which the vkd3d-proton build uses. Install Proton Experimental from Steam. -
vkd3d-proton, built into
vkd3d-proton-build/out:git clone https://github.com/HansKristian-Work/vkd3d-proton vkd3d-proton-src cd vkd3d-proton-src && git checkout 2576c0b4 && git submodule update --init --recursive git apply ../patches/vkd3d-proton-2576c0b4-xcl.patch meson setup ../vkd3d-proton-build/build --cross-file=build-win64.txt -Dbuildtype=release -Db_ndebug=true \ -Dprefix="$PWD/../vkd3d-proton-build/out" -Dbindir=x64 -Dlibdir=x64 ninja -C ../vkd3d-proton-build/build install cd ..
-Db_ndebug=trueis needed. XCL swaps the vtables of D3D12 objects, and theassert()s in vkd3d-proton abort on that. The patch fixes vkd3d-proton's own vtable checks in the same way. -
XCL:
git clone https://github.com/xcl-dev/xcl ../xcl cd ../xcl && git checkout c160d86 && git apply ../xcl-linux/patches/xcl-c160d86-linux.patch cargo build --release -p xcl --target x86_64-pc-windows-gnu cd -
Replace
xcl-linuxwith the name of this folder. -
DXC for Windows: get
dxc_2026_09_29.zipfrom the DirectXShaderCompiler releases and unpack it into./dxc, so thatdxc/bin/x64/dxcompiler.dllexists. -
Prefix:
./setup-prefix.sh
-
Precompile the compute pipelines. This takes several hours. You can stop it and start it again, and it goes on where it stopped:
GAME_DIR=/path/to/your/dump ./precompile.sh
To follow it, run this in another terminal:
./watch-precompile.sh
-
Run the title for 300 s with a summary at the end:
GAME_DIR=/path/to/your/dump tools/game-run.sh first-run 300
Follow it live with:
tools/watch-game.sh
./run-game.shruns it without a time limit.
Heavy jobs run under systemd-run --user --scope -p MemoryMax=…. If they run out of memory, only the job is killed, not your desktop.
vkd3d-proton (the patch):
- XCL replaces the vtables of D3D12 objects. vkd3d-proton recognises its own objects by their vtable, so it refused XCL's command allocators and command lists. The patch accepts an object whose
GetDeviceis vkd3d-proton's. - The title creates a shared fence.
is_shared_ID3D12Fence1()also checks the vtable, so it read the wrong struct and the title hung after its first frame. The patch applies the sameGetDevicecheck there.
XCL (the patch; each change is marked XCL-FIX or XCL-DIAG in the source):
- XG
CopyFromSubresource: the console method takes one moreu32before the source. Read with one argument short, it wrote about 1.1 GB away from its destination. Also in xcl-dev/xcl#1435 and xcl-dev/xcl#684. NodeMask = 0for translated compute pipelines. The title passes 1, and vkd3d-proton refuses a cached pipeline whose node mask differs, so every precompiled pipeline was thrown away. Also in xcl-dev/xcl#1368.XCL_NO_TITLE_WATCHDOG=1(title_patch.rs): patches the two places where the title's watchdog thread ends the process.- It only applies to build 1.0.2.1, and only if every byte matches. Any other build is left alone.
- It hides a stall but does not shorten it: a real deadlock would hang instead of exiting.
- Precompile memory: the driver compile slots are weighted by program size, one slot per 1.5 MB of DXIL. Three 6 MB programs compiling at once ran out of 20 GB.
XCL_DIRECT_DENY/XCL_SKIP_CS: per-program lists. Some direct-DXIL programs crash vkd3d-proton's dxil-spirv (CFGNode::find_common_post_dominator), and one hung the GPU (Xid 109). The lists send those programs through HLSL instead, or skip them.- Diagnostics: build times per pipeline, XG copy arguments, kernelx memory faults.
Settings in wine-run.sh:
VKD3D_SHADER_CACHE_PATH=0: vkd3d-proton keeps no disk cache of its own.GetCachedBlobthen returns the whole compiled pipeline, and XCL keeps it on disk. With vkd3d-proton's cache, the blob is only a 112-byte key, and the real pipeline has to be in the NVIDIA cache. The NVIDIA cache drops entries at about 1 GB.VKD3D_CONFIG=no_descriptor_heap: with the default VK_EXT_descriptor_heap path on NVIDIA 620, pipelines with static samplers compiled differently in every process, so their kept blobs were never reused. Reloading 137 such pipelines took 133 s with the heap and 2 s without it.- The NVIDIA shader cache lives in
cache/nvidiaand is not cleaned up. Do not set__GL_SHADER_DISK_CACHE_SIZE: a large value wiped the cache.
Things that did not work, or that get in the way:
- gdb cannot be used: XCL's hardware debug registers raise
SIGTRAP. To find a GPU hang, use the breadcrumbs of a debug vkd3d-proton build (tools/crumbs-run.sh). XCL_PSO_WAIT_MSskips dispatches whose pipelines are not built yet. The GPU waits that follow them then hang.- After GPU faults (
Xid 13/109), the NVIDIA driver refused new contexts to every program (NV_ERR_STATE_IN_USE) until a reboot. Do not run other games on the GPU at the same time. - The Series S profile stopped the title at a breakpoint after 13.5 s. Use Series X.
GPL-2.0, the same as XCL. See LICENSE. The vkd3d-proton patch falls under vkd3d-proton's licence (LGPL-2.1).
Claude Code with Claude Opus 5.5 wrote the scripts, the patches and this README while working through the problems above. The runs were made on the machine listed under Tested on.