- Visual Studio 2019 (or newer)
- Git
- Python
- Win flex-bison
- Meson
- DXC, if building the PC version
- GDK Xbox, if building the console version
Latest tested commit: b723962418cee94070997fd8c15548dfeebf88ee
- Open Git Bash
- In any directory you like:
git clone https://gitlab.freedesktop.org/mesa/mesa.git; mkdir mesa/flibitBuild - Close Git Bash
- Extract contents of Win flex-bison to a conveniently-located folder, add said folder to $PATH
- Open an appropriate Developer Command Prompt
- For PC: x64 VS Developer Command Prompt
- For console: Xbox One Gaming Command Prompt or Scarlett Gaming Command Prompt
py -m pip install makocdtomesa/flibitBuild/folder
For PC...
meson .. -Dgallium-drivers=d3d12 -Dgallium-d3d12-video=disabled -Dzlib=disabled --backend=vsmsbuild mesa.sln /m(or build with Visual Studio)
For console...
- Write this to a file called
gdkx.txt:
[target_machine]
system = 'Gaming.Xbox.XboxOne.x64'
cpu_family = 'x86_64'
cpu = 'x86_64'
endian = 'little'
Pay very close attention to the system property! Adjust this if you are building for Scarlett!
meson .. -Dgallium-drivers=d3d12 -Dgallium-d3d12-video=disabled -Dzlib=disabled -Dc_winlibs=[] -Dcpp_winlibs=[] --backend vs --cross-file gdkx.txt- Build
flibitBuild/mesa.slnwith Visual Studio
These are the files you want to make the full D3D12 driver:
mesa/flibitBuild/src/gallium/targets/libgl-gdi/opengl32.dllmesa/flibitBuild/src/gallium/targets/wgl/libgallium_wgl.dll- PC Only:
dxcompiler.dllanddxil.dll, from the DXC release you downloaded

Open the generated project files in Visual Studio and use the Configuration Manager to add a new solution platform for the Gaming.Xbox platform you want, otherwise it will not work. I don't know of any automated way to make this fix.