Basic instruction on building and using DXVK in Wine
Get more details and latest information at https://github.com/doitsujin/dxvk
(Alternatively, many distribution got a DXVK package to install/uninstall DXVK library in a wineprefix making it way more easier to try it out!)
===============================================
Open a terminal
Make sure you've allready installed all needed dependencies
A working toolchain (gcc, git...) wine, meson, minGW64, glslang, ninja, vulkan-icd-loader (64 and 32bit)
Use your distribution favourite package manager to install any missing dependency
------------------------------------------------------
Prepare a new wine prefix (as dxvk is gonna replace
d3d11.dll and dxgi.dll)
Here we are making a new 32 bit wineprefix in a hidden folder
named .winedxvk
WINEARCH=win32 WINEPREFIX=/home/-youruserdir-/.winedxvk winecfg
(Every time you'll want to use this prefix you'll have to add the
WINEPREFIX environment variables before your wine invocation
ex: WINEPREFIX=/home/-youruserdir-/.winedxvk wine someprogram.exe )
------------------------------------------------------
Download DXVK's source code
git clone https://github.com/doitsujin/dxvk.git
And Change Directory to DXVK
cd dxvk
------------------------------------------------------
Follow the building instruction found in the README.md file
WINEPREFIX=/home/-youruserdir-/.winedxvk meson --cross-file build-win32.txt --prefix /home/-youruserdir-/dxvk build.w32
cd build.w32
meson configure -Dbuildtype=release
ninja
ninja install
------------------------------------------------------
Now execute the setup script to install dxvk libraries in your wineprefix
cd ../bin
WINEPREFIX=/home/-youruserdir-/.winedxvk bash setup_dxvk.sh
(Actually, this make a symlink of dxvk libraries in the dxvk folder to your wineprefix)
------------------------------------------------------
We'll use winetricks to install the Vulkan SDK in your wineprefix
Update the winetricks script
rm winetricks
wget https://raw.githubusercontent.com/Win...
chmod +x winetricks
And install Vulkan SDK
WINEPREFIX=/home/-youruserdir-/.winedxvk ./winetricks vulkansdk
------------------------------------------------------
For the next part, have a look at the readme from wine vulkan:
https://github.com/roderickc/wine-vulkan
Create a json file in /home/-youruserdir-/.winedxvk/drive_c/windows/winevulkan.json With the following content:
{
"file_format_version": "1.0.0",
"ICD": {
"library_path": "c:\\windows\\system32\\winevulkan.dll",
"api_version": "1.0.51"
}
}
------------------------------------------------------
And for the last part, edit the registry to add a new key located in HKLM\SOFTWARE\Khronos\Vulkan
WINEPREFIX=/home/-youruserdir-/.winedxvk wine regedit
And navigate to HKLM\SOFTWARE\Khronos\Vulkan
New key : Drivers
New Dword Value : C:\Windows\winevulkan.json
(let it set at 0)
Watch video [HowTo] Build and install DXVK in Wine online without registration, duration hours minute second in high quality. This video was added by user snowdreike 07 April 2018, don't forget to share it with your friends and acquaintances, it has been viewed on our site 7,819 once and liked it 81 people.