Gallium Nine Standalone
Clone or download
Latest commit acc17f4 Jan 15, 2019


Gallium Nine Standalone


Gallium Nine Standalone, as the name implies, is a standalone version of the WINE parts of Gallium Nine.

This decouples Gallium Nine from the WINE tree, so that it can be used with any WINE version. There is no need for any WINE patches. A stable, development, or staging WINE release is sufficient.

Gallium Nine Standalone consists of two parts:

  • d3d9-nine.dll: Gallium Nine Direct3D 9 library
  • ninewinecfg.exe: GUI to enable/disable Gallium Nine with some additional info about the current state


  • Official distro packages

    Gallium Nine is a fork of the WINE tree, without any chances to be merged upstream. The decoupling of the WINE tree makes it its own upstream.

  • Ease updates for the user

    WINE can be updated independent of Gallium Nine Standalone. Users can mix releases of both projects to their liking. Switching between staging and non-staging does not require a rebuild.


  • A Gallium based graphics driver (Mesa 3D)
  • Mesa's Gallium Nine state tracker (

Distro packages

Your distribution may provide a package, avoiding the need to compile the code yourself. The exact usage instructions may vary in this case so check your distribution for the details. The currently known packages are:


Gallium Nine Standalone requires the Meson Build system and winegcc to build binaries usable by WINE.

The build dependencies are:

  • WINE tools (winegcc, wrc, winebuild)
  • libwine
  • d3dadapter9
  • libx11
  • libxext
  • libx11-xcb
  • libxcb
  • libxcb-dri3
  • libxcb-present
  • libxcb-xfixes

And optionally, for the DRI2 fallback:

  • libgl
  • libegl

On Debian and Ubuntu the required development packages are:

meson pkg-config

in addition to:

libc6-dev wine64-tools libwine-dev libd3dadapter9-mesa-dev libx11-dev libx11-xcb-dev libxcb1-dev libxcb-dri3-dev libxcb-present-dev libxcb-xfixes0-dev libgl1-mesa-dev libegl1-mesa-dev

for :amd64 as well as :i386

Most DirectX 9 games are 32bit, for which you require 32bit binaries. For the few 64bit DirectX 9 games 64bit binaries are required.

To get started, it is recommended to use the script, which will build for both architectures (so the build dependencies for both are required). It creates a tarball of the binaries as well as the runtime script to set up a WINE prefix (see Usage below).


This part assumes that you used the script as described above.

  • Extract the tarball in e.g. your home directory
  • run the script from the directory you extracted the tarball in

The latter symlinks the extracted binaries to your WINE prefix and enables Gallium Nine Standalone. To target another WINE prefix than the standard ~/.wine, just set WINEPREFIX accordingly before you run

Gallium Nine Standalone comes with a GUI.

For the 32bit version run wine ninewinecfg and for 64bit wine64 ninewinecfg.