protonscr

Issue with AMD Radeon RX 5700 XT

dxvkclosed amd amdvlk
doitsujin/dxvk#1683 · opened 2020-07-09 by VGuenat · updated 2022-07-12 · 11 comments · github
1 matching comments, n / p to jump
VVGuenat 2020-07-09 github

Hello there,

I find myself with a problem regarding the setup of DXVK on Archlinux. I am unable to run any game with DXVK enabled, while the games run flawlessly under wined3d (either in wine or proton). Now I assume I must have missed some important and obvious step, but so far I was unable to find which one.
Here is the list of the things I've done:

I don't know if this is a relevant detail, but I am running games from Lutris.

Software information

Starcraft 2 (wine), Supreme Commander (proton), Star Wars: The Force Unleashed Ultimate Sith Edition (proton), Mirror's Edge (wine)
Basically any game that is not running natively on Linux has the same issue. As mentioned earlier, deactivating DXVK solves the issues.

System information

  • GPU: AMD Radeon RX 5700 XT
  • Driver: amdvlk (2020.Q2.6-1), vulkan-radeon (radv, 20.1.2-1, same version for mesa) both 64-bit and 32-bit versions
  • Wine version: lutris-5.7.3-x86_64 and proton 5.0-9
  • DXVK version: 1.7L-84bb768

Apitrace file(s)

  • Didn't use it yet. Will try to use the Windows release of apitrace in one of the wine prefixes from lutris later on.

Log files for Starcraft 2

Log files for Supreme Commander

  • screenshot with DXVK_HUD=full. The screen stays black until I kill the application.
    Screenshot_2020-07-10_00-00-06
  • proton log with WINEDEBUG: steam-9350.log

I apologize if this a gross misconfiguration from my side or if it has already been solved elsewhere, but I couldn't seem to find the necessary information to make DXVK work in my setup.

Thank you for your time

Ddoitsujin maintainer 2020-07-10 github

Can't do much without an apitrace.

Sounds like a driver bug though, the log file indicates that the driver crashes while compiling shaders.

OOschowa 2020-07-10 github

Get rid of amdvlk, which you are using according to your screenshot, and try again.

Ffrostworx 2020-07-10 github

or explicitly use vulkan-radeon and leave amdvlk untouched:
VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/radeon_icd.i686.json:/usr/share/vulkan/icd.d/radeon_icd.x86_64.json %command%

VVGuenat 2020-07-10 github

Thanks for the quick answer! As @Oschowa mentioned, getting rid of amdvlk solved the issue and everything works smoothly with DXVK. And as @frostworx suggested there is an option in Lutris to select the Vulkan ICD on a per-game basis.

What would be the next step? Reporting the issue upstream to the amdvlk folks?

Ddoitsujin maintainer 2020-07-10 github

If you can get us an apitrace then we can take a look at the shader that's causing problems and check if we're generating valid code, but we need something to work with.

VVGuenat 2020-07-11 github

Took me a while longer than expected to break my setup again and to use apitrace in wine but here is the trace for StarCraft2
SC2.trace

It also contains the Battle.net launcher part, which is working. The game itself crashed at launch, so hopefully you'll get what you need.

Tell me if there's anything more I can do!

Nnhaehnle 2020-08-24 github

@doitsujin JFYI, since I happened to come across this issue randomly, we found a DXVK-generated pipeline that uses push constants outside of the range defined in the VkPipelineLayout in a different game. That's out-of-spec behavior, but it seems like validation may not catch it.

Ddoitsujin maintainer 2020-08-24 github

Yes, that's a known long-standing issue with D3D9 shaders already reported in #1742, and validation does catch it. Still waiting for @Joshua-Ashton to fix that.

BBlisto91 2022-06-15 github

@VGuenat Was this issue solved with newer dxvk and or drivers?
I see the issue doitsujin links to got solved if it's the same problem.

KK0bin maintainer 2022-07-12 github

Closing this because it's stale.

BBlisto91 2022-07-12 github

If you still have the same issue feel free to comment here again.