Read-only copy of github.com/brcly/TuxBox · Open-source Xbox Series X|S runtime and RDNA 2 shader translator for running unpacked console titles on Linux (via Proton) and Windows.
  • Rust 53.5%
  • Python 25.1%
  • C++ 17.9%
  • C 2%
  • HLSL 1.1%
  • Other 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
brcly 106120caab d3d12, xmem, xg: run queue page mappings on hosts that mirror sections
Since 9c3cf86f a queue page mapping imports each page as a D3D12 tile heap.
A host that cannot import a section (section-import substituted or refused,
as RADV) refused every such mapping, and XMem backs pages with sections by
default (#656). At the first device the provider now asks XMem, through the
new TuxBoxPreferPrivateBacking export, to back newly mapped pages with
private memory, which such a host imports directly. TUXBOX_XMEM_PRIVATE_VIEWS
still decides when it is set. The buffer-remap control loads XMem before the
device, as a title does.

Private backing exposed two faults in skipping unchanged texture gathers,
on any vendor:
- every phase of an ordered batch could skip, though an earlier phase's
  write is not yet in flight when the skip is decided; only the first
  phase may now;
- the watch covered the texture's own CPU address, but a queue mapping
  changes only what the GPU reads there. Gathers now record and watch the
  host pages the GPU reads, regather when those change, after the image is
  written (stores to a null page are dropped), and while a remap is pending.

XG layouts: a render target in the 4 KiB swizzle (0x105) keeps the color
plane of the same texture without flags and gains a color mask at the next
8 KiB, as the 64 KiB profile does. The rule is shared by the XG provider and
the oracle, which now compares whole layouts through XGCreateTextureComputer:
456 match the GDK 26100 library byte for byte, 0 differ.

Lanes: queue-page-mappings now passes on the Radeon 610M and the RTX 4070 Ti
SUPER, with private and section backing. Its two-instance draw runs rather
than being refused, like the multi-workgroup dispatch, and failed reads name
their step and values. Removes the temporary TUXBOX_GATHER_NEVER switch.

Full check: AMD 1002:13c0 17 passed, 0 failed. NVIDIA 10de:2705 16 passed,
1 failed (formatting, fixed after; not rerun).
2026-12-02 23:20:51 +00:00
.cargo Initial commit 2026-11-21 14:23:06 +00:00
.devcontainer devcontainer: warm the pinned GE-Proton11-15 (#602) 2026-11-30 23:16:25 +00:00
.github docs: say what CI runs (#588) 2026-11-30 19:01:51 +00:00
docs d3d12, xmem, xg: run queue page mappings on hosts that mirror sections 2026-12-02 23:20:51 +00:00
evidence tools: record the f32 compares on an RDNA 2 card (T5) (#652) 2026-12-02 21:30:52 +00:00
examples/lanes d3d12, xmem, xg: run queue page mappings on hosts that mirror sections 2026-12-02 23:20:51 +00:00
fixtures rdna2: record an ISA conformance corpus for the decoder (#540) 2026-11-29 22:03:38 +00:00
graphics Initial commit 2026-11-21 14:23:06 +00:00
project_tuxbox d3d12: record a lazy publication on access on copy lists of its own (#657) 2026-12-02 21:21:12 +00:00
runtime d3d12, xmem, xg: run queue page mappings on hosts that mirror sections 2026-12-02 23:20:51 +00:00
tests tools: record the f32 compares on an RDNA 2 card (T5) (#652) 2026-12-02 21:30:52 +00:00
tools d3d12, xmem, xg: run queue page mappings on hosts that mirror sections 2026-12-02 23:20:51 +00:00
.envrc nix: add a development shell 2026-11-25 18:27:30 +01:00
.gitattributes Translate simple Xbox shaders independently and run Frosty on stock Proton 2026-11-22 04:33:16 +00:00
.gitignore rdna2: record an ISA conformance corpus for the decoder (#540) 2026-11-29 22:03:38 +00:00
AGENTS.md docs: point agents at the rust-skills rules the maintainers' agents use 2026-11-29 23:00:00 +00:00
build.py d3d12: support ordered buffer and texture access within one draw or dispatch 2026-12-02 09:15:09 +00:00
Cargo.lock d3d12: place a title's packed structures and its scenes for the ray walks (#596) 2026-12-01 17:44:02 +00:00
Cargo.toml bvh-layout: write console-format scenes and instance records (#525) 2026-11-30 09:16:43 +00:00
CONTRIBUTING.md docs: say what CI runs (#588) 2026-11-30 19:01:51 +00:00
flake.lock nix: add a development shell 2026-11-25 18:27:30 +01:00
flake.nix nix: use Microsoft's Linux DXC release so the DXC helper builds (#650) 2026-12-02 21:11:08 +00:00
LICENSE License TuxBox under Apache 2.0 2026-11-24 00:19:13 +00:00
README.md docs: ProjectScarlett's state after the 1 December frame-time work 2026-12-01 15:18:03 +00:00
requirements.txt Initial commit 2026-11-21 14:23:06 +00:00
rustfmt.toml Format the workspace with rustfmt 2026-11-30 04:09:36 +00:00
tuxbox.py xmem: honor GDK allocation contracts and title memory profiles 2026-12-02 12:03:00 +00:00

TuxBox — Xbox Series compatibility for Linux and Windows

Getting started · Progress · Architecture · Contributing

TuxBox is an experimental compatibility layer that aims to run Xbox Series X|S games on PCs. It runs on Linux through Proton and natively on Windows, with AMD and NVIDIA graphics cards. Games are furthest along on Linux; on Windows most of the built-in checks pass, and games have not been tested there yet.

01 / how it works

An Xbox Series game mostly calls the same APIs a Windows game does. Windows handles those itself, and Valve's Proton provides them on Linux. TuxBox supplies the part that is specific to the console:

  • Graphics: the Xbox version of Direct3D 12, plus ray tracing and texture layouts.
  • Shaders: a translator that turns the console's GPU code into shaders a PC graphics card can run.
  • Other libraries: the memory, input, storage and audio calls a game actually uses.

We measure progress by what works in real games, not by how many functions exist. Architecture · Library coverage

02 / status

TuxBox is early. No retail game is playable yet.

Title Where it gets to on Linux Where it gets to on Windows
Lanes, our own test game Fully playable Untested
The Matrix Awakens Menu, the opening of the chase, and a free-roam city test, with visual faults and crashes Untested
GTA VI Reaches the opening world and plays into the story intro, with texture faults. Frames start at about 45–60 ms and slow to about half a second in the intro; runs end within minutes on the game's own assert or a GPU fault Untested

You supply your own games and system files. Progress · Test results

Platforms and graphics cards

Linux (Proton) Windows 11 (native)
NVIDIA GTA VI reaches its world on an RTX 4070 Ti SUPER and an RTX 3080 Ti, and contributors run it there on an RTX 5090; the built-in checks pass on all three 73 of 76 built-in checks pass on an RTX 4060 Laptop; 4K presentation and a ray-tracing self-test fail; games untested
AMD Built-in checks pass on the RX 6600, 6700 XT, 6900 XT, 6950 XT and 9060 XT and the Radeon 890M; contributors have run GTA VI into its world on an RX 6900 XT, RX 9070 and RX 9070 XT Untested
Intel Untested 71 of 76 built-in checks pass on Intel UHD Graphics; 4K presentation and three ray-tracing self-tests fail; games untested

The built-in checks are the homebrew fixtures and shader translator checks: each runs test programs on the card and compares every result with a reference. Recorded results

Library and RDNA 2 instruction coverage

The Matrix Awakens city free-roam running through TuxBox
The Matrix Awakens on TuxBox. Rendering faults and crashes remain.

03 / try lanes

Install the build tools, then run from the project folder:

python -m pip install -r requirements.txt
python build.py lanes
python tuxbox.py run --app-id Lanes build/lanes

Press Left or Right to change lanes, or Space to take a turn in your current lane. R restarts and Escape quits.

04 / documentation

05 / contributing

Every change must pass the checks relevant to it, on a real GPU where it affects one. How to contribute

06 / license

Copyright © 2026 TuxBox contributors. TuxBox is licensed under the Apache License 2.0. Third-party materials retain their own terms. Third-party notices · BCPack decoding is based on bcpack-rs by Ahmet Dedeler and Microsoft's silicon-rans. Storage codec notices