This is Gentoo's testing wiki. It is a non-operational environment and its textual content is outdated.
Please visit our production wiki at https://wiki.gentoo.org
DXVK
DXVK is not available from the Portage tree or external repositories.
DXVK is a Vulkan-based translation layer for Direct3D 10/11 which allows running 3D applications on Linux using Wine.
Requirements
Pre-built version
- Wine 3.10 or newer
- Winetricks - Live build
- Vulkan
Building from the source
- Wine 3.10 or newer
- Winetricks - Live build
- Vulkan
- Meson build system (at least version 0.43)
- MinGW64 compiler and headers (requires threading support)
- glslang compile
Building
DXVK can be installed from a pre-built release or by building from source. Whichever method is chosen, installing for Wine or Lutris is the same.
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>
Building from source
DXVK also requires Mingw-w64. Please refer to the Mingw article for installation instructions.
Clone the DXVK Git repository:
user $
git clone https://github.com/doitsujin/dxvk.git ~/dxvk
Build and install DXVK:
user $
cd ~/dxvk
user $
./package-release.sh master ~/dxvk-release --no-package
user $
cd ~/dxvk-release/dxvk-master
This will create the directory ~/dxvk-release/dxvk-master which contains both 32-bit and 64-bit versions of DXVK.
Installation
Installing wine on root user is not sane.
After compilation DIR `dxvk-master` is created which contain `x32/`, `x64/` and `setup_dxvk.verb`.
DXVK for Lutris
Lutris does not require DXVK installed in WINE and it may be easier to manage the usage for selected DirectX apps this way.
Requirements
- Wine >= 3.5
- Wine dependencies - Installing latest Wine-Staging into your system to pull in
dependencies is recommended.
- Vulkan capable GPU
- Driver supported by DXVK. With AMD, you can check which driver is used by running lspci -k. If it says that the driver in use is radeon, your system will not be able to use DXVK.
- Vulkan Loader, both 64-bit and 32-bit . Installation instruction are right below.
Installation
Move/copy x32/ and x64/ folders from compiled DXVK to a ~/.local/share/lutris/runtime/dxvk.
user $
cp -r x32 ~/.local/share/lutris/runtime/dxvk
user $
cp -r x64 ~/.local/share/lutris/runtime/dxvk
DXVK for WINE
Install DXVK into WINEPREFIX which by default is set to ~/.wine:
It is recommended to create .wine-32 or .wine-64 in /home/$USER/ for different architectures.
user $
export WINEPREFIX=~/.wine
user $
winetricks --force setup_dxvk.verb