1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

DXVK Guide

Discussion in 'Linux Guides (Generic)' started by booman, Jul 12, 2018.

  1. booman

    booman Grand High Exalted Mystic Emperor of Linux Gaming Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    7,269
    Likes Received:
    527
    Trophy Points:
    113
    Location:
    Linux, Arizona
    Home page:
    This guide will walk you through setting up Nvidia drivers, Wine versions and DXVK version for Direct X 11 games in PlayOnLinux

    1. Install Nvidia 396.51

    Use the Driver Manager or Additional Drivers (Mint/Ubuntu) to install Nvidia 396.51 drivers
    Reboot

    If you don't see 396 then you may have to enter this PPA:

    Open Terminal
    Run command
    Code:
    sudo add-apt-repository ppa:graphics-drivers/ppa
    Refresh Driver Manager
    Check Nvidia 396.51
    Click Install
    Reboot

    2. Install Vulkan Linux Libraries

    Launch Terminal
    Run the following commands:
    Code:
    sudo apt-get install libvulkan1 libvulkan1:i386
    Press Enter
    Reboot

    3. Vulkan Install Check
    Verify that Linux Vulkan is installed with the following command:
    Code:
    vulkaninfo
    Press Enter

    Note: Will also show you Vulkan version

    4. Install Wine 3.14-staging or newer
    https://lutris.net/files/runners/

    Download: wine-staging-3.14-x86_64.tar.gz
    Extract to Wine 64-bit directory:
    /home/username/.PlayOnLinux/Wine/Linux-AMD64/

    6. 64-bit Virtual Drive
    Create a 64-bit Virtual Drive through Manual Installation in PlayOnLinux

    7. DXVK Installer (DLLs & Registry Entries)

    Go to: https://github.com/doitsujin/dxvk/releases
    Download dxvk 0.70
    Extract to your desktop

    Note: Newest versions are only compatible with beta versions of Nvidia drivers

    8. Copy/Paste DLLs

    Copy the DLLs into the game directory where the game executable is run.:
    • d3d10_1.dll
    • d3d11.dll
    • dxgi.dll
    • d3d10.dll
    • d3d10core.dll
    64 vs 32 bit:
    • If the game is 64-bit, copy the 64-bit dlls
    • If the game is 32-bit, copy the 32-bit dlls
    or Place 64-bit DLL in:
    /home/username/.PlayOnLinux/wineprefix/game/c_drive/Windows/System32

    or Place 32-bit DLL
    /home/username/.PlayOnLinux/wineprefix/game/c_drive/Windows/syswow64

    Note: d3d11 and dxgi already existing?
    Overwrite them!


    9. Wine 3.5 Overrides
    1. PlayOnLinux Configure
    2. Select your Virtual Drive
    3. Wine Tab
    4. Configure Wine
    5. Libraries Tab
    6. Add the following overrides:
      d3d10_1
      d3d11
      dxgi
      d3d10
      d3d10core
      xinput2_7
    7. Click Edit, change them from (native,builtin) to (native) Windows:
      d3d10_1 (native)
      d3d11 (native)
      dxgi (native)
      d3d10 (native)
      d3d10core (native)
      xinput2_7 (native)
    Note: You can type in the override name instead of searching, just be careful of typos

    10. Enable DXVK HUD

    PlayOnLinux Configure
    Miscellanous Tab
    Command to execute before running program
    Enter this Command: export DXVK_HUD=devinfo,fps

    Note: Turn off DXVK HUD by removing the command

    Close Configure

    11. Run Game

    If you see Vulkan info like FPS and Nvidia information
    Its working!

    Some games are still not 100% functional and still may not run properly. DXVK is releasing updates on a regular basis, but you may have to install the newest versions of Nvidia and Wine staging.
    Other games like Fallout 4 still have bugs and do not run without patched versions of Wine.
    Last edited: Sep 21, 2018
    batmanm0b1e likes this.
  2. booman

    booman Grand High Exalted Mystic Emperor of Linux Gaming Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    7,269
    Likes Received:
    527
    Trophy Points:
    113
    Location:
    Linux, Arizona
    Home page:
    One way to avoid all of these steps for multiple games is setting up everything in a generic Virtual Drive
    /home/username/.PlayOnLinux/wineprefix/

    Name a Virtual Drive: masterdrive

    Then when you want to test a game with DXVK you just copy the folder and rename it.
    This new Virtual Drive will show up in PlayOnLinux Configure

    This way Wine 3.12 Staging, DXVK is already installed and setup.
    You can now install the game from the Miscellaneous Tab and create shortcuts with the General Tab.
  3. batmanm0b1e

    batmanm0b1e Member

    Joined:
    Feb 12, 2018
    Messages:
    154
    Likes Received:
    18
    Trophy Points:
    18
    I'm lost on this part? what folders do you mean

    (Then when you want to test a game with DXVK you just copy the folder and rename it.)
  4. booman

    booman Grand High Exalted Mystic Emperor of Linux Gaming Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    7,269
    Likes Received:
    527
    Trophy Points:
    113
    Location:
    Linux, Arizona
    Home page:
    Go your your .PlayOnLinux directory in your home.
    Open Wineprefix and you will see all of your Virtual Drives.

    What you can do is setup a "generic" Virtual Drive with no games installed, but have all the basic packages, DXVK and Wine setup. So all you do later on is copy the "generic" folder and rename it.
    Then install your game.
    This way you don't have to do it over and over and over again.
    batmanm0b1e likes this.
  5. batmanm0b1e

    batmanm0b1e Member

    Joined:
    Feb 12, 2018
    Messages:
    154
    Likes Received:
    18
    Trophy Points:
    18
    Aaah now i get it :)

    so i'm just making VD and installing the necessary DXVK stuff and then copying the folder somewhere. So then don't have to do these step millions of times. Great idea booman:)
  6. booman

    booman Grand High Exalted Mystic Emperor of Linux Gaming Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    7,269
    Likes Received:
    527
    Trophy Points:
    113
    Location:
    Linux, Arizona
    Home page:
    Yup, you can leave it in /home/batman/.PlayOnLinux/wineprefix directory if you want.
    I have one called: masterprefix
  7. Sputnik_tr_02

    Sputnik_tr_02 Member

    Joined:
    Apr 3, 2018
    Messages:
    32
    Likes Received:
    7
    Trophy Points:
    8
    @booman Hey booman DXVK now has dx10 support as well. We have 3 more .dll files to set up. They are included in the latest release (0.70)

    d3d10.dll
    d3d10_1.dll
    d3d10core.dll

    i updated my guide post for S.T.A.L.K.E.R
    Peace.
  8. booman

    booman Grand High Exalted Mystic Emperor of Linux Gaming Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    7,269
    Likes Received:
    527
    Trophy Points:
    113
    Location:
    Linux, Arizona
    Home page:
    Thank you for the tips.
    The question is, do I keep this guide because it refers to Nvidia 396.24.02 and DXVK 0.60 or do I update it with the newest versions?
    Or... do I create a new one for 0.70?
  9. Sputnik_tr_02

    Sputnik_tr_02 Member

    Joined:
    Apr 3, 2018
    Messages:
    32
    Likes Received:
    7
    Trophy Points:
    8
    @booman I think you should update this guide for 0.70 unlike wine there is little to no reason to use older version of DXVK. There is not much to change since we are installing it manually, just three more .dll files to setup and latest Nvidia driver. DXVK is advancing rapidly it's hard to keep up. Right now recommended driver version is 396.51 for Nvidia users. Older versions likely to cause problems in certain games.
    booman likes this.
  10. booman

    booman Grand High Exalted Mystic Emperor of Linux Gaming Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    7,269
    Likes Received:
    527
    Trophy Points:
    113
    Location:
    Linux, Arizona
    Home page:
    I agree
    When I checked my driver manager after some system updates, turns out now I'm using Nvidia 396.51
    I didn't even see this update in the list???
    Anyways, I downloaded 0.70 and will probably update this guide.
    Its Debian, Ubuntu, Mint specific anyways... so it doesn't apply to everyone
  11. booman

    booman Grand High Exalted Mystic Emperor of Linux Gaming Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    7,269
    Likes Received:
    527
    Trophy Points:
    113
    Location:
    Linux, Arizona
    Home page:
    Guide updated for Wine 3.14 staging 64-bit and DXVK 0.70
    gamesrule likes this.

Share This Page