DXVK

From Gentoo Wiki
Jump to: navigation, search
Resources

DXVK is a Vulkan-based translation layer for Direct3D 10/11 which allows running 3D applications on Linux using Wine.

Requirements


Building from source

  • Meson build system (at least version 0.43)
  • dev-util/glslang

Installation

External repository

A DXVK ebuild is available from tastytea's repository.

(you'll need app-eselect/eselect-repository first)

user $eselect repository enable tastytea
user $emaint sync -r tastytea
user $echo 'app-emulation/dxvk ~amd64' >> /etc/portage/accept_keywords/dxvk
user $emerge -a app-emulation/dxvk

Pre-built release

Fetch the DXVK from a release pageː

https://github.com/doitsujin/dxvk/releases

Extract itː

user $tar -xvf dxvk-<version>.tar.gz
user $cd ~/dxvk-<version>

From source

Clone the DXVK Git repository:

user $git clone https://github.com/doitsujin/dxvk.git ~/dxvk

Build and install DXVK:

user $cd ~/dxvk
user $meson --cross-file build-wine64.txt --buildtype release --prefix ${PWD}/x64 --libdir ${PWD}/x64 build_64
user $cd build_64
user $ninja install

This will create the directory ~/dxvk/x64 which contains the 64-bit version of DXVK. For 32 bit, replace all occurrences of 64 with 32.

Configuration

Lutris

Move/copy all .so-files to ~/.local/share/lutris/runtime/dxvk/x{64,32}.

tastytea's repository:

user $mkdir -p ~/.local/share/lutris/runtime/dxvk/x{32,64}
user $cp /usr/lib32/dxvk/*.so ~/.local/share/lutris/runtime/dxvk/x32
user $cp /usr/lib64/dxvk/*.so ~/.local/share/lutris/runtime/dxvk/x64

Prebuilt and compiled:

user $cp -r x32 ~/.local/share/lutris/runtime/dxvk
user $cp -r x64 ~/.local/share/lutris/runtime/dxvk

WINE

It is recommended to create .wine-32 or .wine-64 in /home/$USER/ for different architectures.

tastytea's repository:

user $WINEPREFIX=~/.wine-64 /usr/lib64/dxvk/bin/setup_dxvk.sh install
user $WINEPREFIX=~/.wine-32 /usr/lib32/dxvk/bin/setup_dxvk.sh install

Prebuilt:

user $WINEPREFIX=~/.wine-64 winetricks --force setup_dxvk.verb
user $WINEPREFIX=~/.wine-32 winetricks --force setup_dxvk.verb

Compiled:

user $WINEPREFIX=~/.wine-64 x64/bin/setup_dxvk.sh install
user $WINEPREFIX=~/.wine-32 x32/bin/setup_dxvk.sh install

Removal

tastytea's repository:

user $WINEPREFIX=~/.wine-64 /usr/lib64/dxvk/bin/setup_dxvk.sh uninstall
user $WINEPREFIX=~/.wine-32 /usr/lib32/dxvk/bin/setup_dxvk.sh uninstall

Compiled:

user $WINEPREFIX=~/.wine-64 x64/bin/setup_dxvk.sh uninstall
user $WINEPREFIX=~/.wine-32 x32/bin/setup_dxvk.sh uninstall

References

Upstream README