doitsujin / dxvk

Vulkan-based implementation of D3D8, 9, 10 and 11 for Linux / Wine
zlib License
13.01k stars 834 forks source link

DXVK: v1.0-11-ga40d8d4 DxvkInstance: Failed to create instance Linux 5.0 AMDGPU #954

Closed ashleysommer closed 5 years ago

ashleysommer commented 5 years ago

Description

Software information

Affects all dx11 and dx10 games in Wine. Affects both wine64 and wine32.

System information

Wine output

wine output

Log files

Possibly related to: https://github.com/doitsujin/dxvk/issues/931 ? But I'm not using the AUR package.

ashleysommer commented 5 years ago

I just tried downgrading to the previous build on the buildserver, v1.0-7-gd011102 seeing the same issue. Edit: Just updated to Wine 3.21-Staging, still seeing the same issue. The Wine PPA I use doesn't have Wine-Staging 4.0+ yet. I will have to install it a different way to test if that helps. Edit2: Updated to Wine 4.3-Staging, still seeing the same issue. Looks like it is not related to Wine version or DXVK version, so must be related to latest Mesa build from Padoka PPA, or new Linux 5.0 AMDGPU driver.

ashleysommer commented 5 years ago

Resolution: I found that package mesa-vulkan-drivers:i386 was not installed on my system (had been removed at some point previously). VulkanInfo was working correctly because it is a 64-bit executable. But I guess these games I'm testing are all 32-bit, and required the 32bit version of the vulkan drivers.

DwarfFighterCleric commented 3 years ago

Thank you so much for sharing! That was the trick for my Dxvk to start working inside Wine too!

Just in case anyone else is having problems with installing Vulkan/DxVk I will write down here the packages that I've installed, I performed manual installation, I didn't use any automated scripts.
(procedure done on MX Linux which comes with custom updated Debian repositories, no need to add 3rd party repositories manually, they're already there... for other distros you will need additional manual steps)

sudo apt-get install libvulkan1 libvulkan-dev vulkan-utils sudo apt-get install mesa-vulkan-drivers sudo apt-get install dxvk sudo apt-get install lutris winetricks dxvk sudo apt-get install mesa-vulkan-drivers:i386

With these packages installed I got The Sims 1: Complete Edition to work, in combination with dgVoodoo2. dgVoodoo2 is required to translate the Directx8 calls into Directx11, and then Dxvk translates Dx11 into OpenGL. Additional required step: In order for dgVoodoo2 to get activated inside of Wine, you need to copy the dgvoodoo DLL files into the game folder, and then run winecfg, create Library override for ddraw.dll (native, builtin) dgVoodoo also gives you the option to run the game windowed, so you will know when dgvoodoo is properly working, there's also a watermark logo in the bottom right corner when it's activated.

Note: Families previously created that had the "no textures" problem (also known as "white sims") will remain with that problem. The Sims will be rendered correctly on the screen but their portraits are still white. You will need to create a new family or reset the game entirely in order to get rid of that problem.