This page looks best with JavaScript enabled

DXVK - Vulkan Wine

 ·  🎃 kr0m

DXVK is a really interesting project, it allows us to convert DirectX11 calls to Vulkan, which will provide us with surprising performance in games that use DirectX11 under wine. The easiest way to do this is to use PlayonLinux in a 64-bit virtual drive where we will install steam.

The first thing will be to install steam in a 64-bit virtual drive on PlayonLinux, then we generate the shortcut of the steam executable.

We compile vulkan-loader for x86 32bits.

vi /etc/portage/package.use/vulkan

media-libs/vulkan-loader abi_x86_32
emerge -av media-libs/vulkan-loader

We need a wine compiled with support for Vulkan:

cd .PlayOnLinux/wine/linux-amd64/
wget https://lutris.net/files/runners/wine-staging-3.9-x86_64.tar.gz
tar xvzf wine-staging-3.9-x86_64.tar.gz
rm wine-staging-3.9-x86_64.tar.gz

We have to replace certain DirectX11 libraries with those modified for Vulkan:

wget https://github.com/doitsujin/dxvk/releases/download/v0.54/dxvk-0.54.tar.gz
tar xvzf dxvk-0.54.tar.gz
cp dxvk-0.54/x32/d3d11.dll ~/.PlayOnLinux/wineprefix/64bits/drive_c/windows/system32/
cp dxvk-0.54/x32/dxgi.dll ~/.PlayOnLinux/wineprefix/64bits/drive_c/windows/system32/
cp dxvk-0.54/x64/d3d11.dll ~/.PlayOnLinux/wineprefix/64bits/drive_c/windows/syswow64/
cp dxvk-0.54/x64/dxgi.dll ~/.PlayOnLinux/wineprefix/64bits/drive_c/windows/syswow64/

We open the wine config of the virtual drive in Playonlinux:

Configure -> General
Wine version -> staging-3.9-x86_64
Configure -> Wine -> Configure wine
Pestaña Librerías

Sustituciones existentes:
d3d11(nativa)
dxgi(nativa)

To display performance data on Steam, right-click on the game:

Properties -> Set launch options
export DXVK_HUD=devinfo,fps

Disable Nvidia’s Allow Flipping:

nvidia-settings

OpenGL Settings -> Allow flipping -> Disable

Now games like Witcher3 will work great. It should be noted that this is a very recent project and we may encounter many bugs and crashes.

Here’s a short video of it working on my PC:

If you liked the article, you can treat me to a RedBull here