Early development: the game does not boot yet

Leonida, revived.
Now for Linux.

Tuxnida picks up Leonida, the native PC recompilation of the Xbox Series version of Grand Theft Auto VI, after the original repo went offline. The goal is a build that feels at home on Linux, running on Vulkan from start to finish.

Why a revival

The original Leonida repository by NotRexed is gone. Tuxnida keeps the code alive as a community fork, keeps the tests passing, and puts Linux first instead of treating it as an extra.

01

Keep it alive

The full history and tooling live on in the fork, with ongoing test and maintenance work.

02

Linux first

The translator, the asset tools and the GPU tests already run natively on Linux. The rest is the roadmap.

03

Open and clean

No game files, no keys, no executables. You bring your own copy, and everything stays on your machine.

How it works

This is a static recompilation, not an emulator. The Xbox Series CPU is x86-64, so the game's own code can run directly on a PC. The work is in reimplementing the console's system software and translating its graphics.

CPU

Native code

The game code runs directly. A PE loader and shims stand in for the console's system libraries.

GPU

Shaders to SPIR-V

Every RDNA2 shader is translated to SPIR-V for Vulkan, with wave64 emulation for NVIDIA and Intel.

D3D

D3D12 on Vulkan

The console's D3D12 calls are mapped onto Vulkan, and ray tracing goes through an XDXR BVH4 builder.

IO

Your assets

Models, textures and audio are exported from your own package. Audio is exported as Ogg, with XMA2 handled by ffmpeg.

Where it stands

Large parts of the pipeline work end to end. The runtime is the big missing piece, so the game does not boot yet.

26,503shaders translated
100%pass spirv-val
382,781models exported
30+GPU and driver setups tested
DoneCopy check for the Xbox Series 1.0.2.1 package
DoneShader translation: 2,236 vertex, 12,101 pixel, 2,689 compute, 9,282 mesh and 195 geometry shaders (23,841 are wave64)
DoneTexture export to DDS, including a BCPack decoder
DoneAudio export: Opus to Ogg, XMA2 through ffmpeg, plus 1,589 music config records
In progressPE loader and shims, with gta6rt --run and GameInput on SDL3
In progressD3D12 to Vulkan: mesh draws, indirect draw state and stream output are still missing
In progressRay tracing through the XDXR BVH4 builder
GoalA native Linux runtime that does not need Wine or Proton

Linux today, and next

Most of the toolchain is already native. The runtime is still Windows code, so for now it runs under Wine or Proton, with its D3D12 layer on native Vulkan.

Native Runs on Linux now

  • The shader translator and make_game.py
  • Asset tools for models, textures and audio
  • Vulkan GPU tests, checked on RADV and NVIDIA
  • vk_pipeline_check, built with CMake

Wine Runs through Wine or Proton

  • The runtime cross-compiles with clang-cl, lld-link and xwin
  • Or use a CI-built runtime with --runtime-build
  • The generated gta6rt.sh starts the runtime with Wine, or with Proton through WINE
  • Select the Vulkan backend with LEONIDA_D3D12=vulkan

Next Where Tuxnida is headed

  • A native Linux runtime, so Wine is no longer needed
  • Packaging that fits Linux distros
  • Broader testing on Mesa drivers, RDNA1 included

Build on Linux

A full build needs about 400 GB of free space. If you only run the check, shaders and runtime stages, about 30 GB is enough.

Install the prerequisites

You need Python 3.12 or newer, .NET 8, the Vulkan SDK or headers, CMake 3.24 or newer, a C++20 compiler, and LLVM 21 or newer with the AMDGPU target. On Linux, having llvm-mc on your PATH is enough. ffmpeg is optional and handles XMA2 audio.

Clone with submodules

git clone --recursive https://github.com/Tuxnida/Tuxnida.git
cd Tuxnida

Build the Vulkan pipeline checker

cmake -S runtime -B runtime/build/linux
cmake --build runtime/build/linux --parallel

Point it at your own copy and build

The available stages are check, shaders, assets, runtime and pipelines.

python3 -I make_game.py --find
python3 -I make_game.py --game /path/to/your/package --out ~/tuxnida/out --work ~/tuxnida/work
or a lighter run:
python3 -I make_game.py --game /path/to/your/package --stages check,shaders,runtime

Run the runtime under Wine or Proton

LEONIDA_D3D12=vulkan ~/tuxnida/out/gta6rt.sh
WINE=/path/to/proton/files/bin/wine LEONIDA_D3D12=vulkan ~/tuxnida/out/gta6rt.sh
You need your own legally purchased copy of the Xbox Series version, package 1.0.2.1. Tuxnida does not include, download, decrypt or help you get any game files.

Disclaimer

Tuxnida is an unofficial fan project for preservation and interoperability. It is not affiliated with, endorsed by or connected to Rockstar Games or Take-Two Interactive. Grand Theft Auto and related names are trademarks of their owners. The repository contains no game code, assets, keys or executables, and it needs your own legally obtained copy. Credit for the original work goes to the Leonida contributors, and the third-party credits are listed in the repository README.