Bug 107914 - [DXVK] Crashes of 32 bit games with RADV on AMD Raven
Summary: [DXVK] Crashes of 32 bit games with RADV on AMD Raven
Status: RESOLVED NOTOURBUG
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Vulkan/radeon (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-12 23:43 UTC by RobusGrobus95
Modified: 2018-09-15 17:36 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
stderr.log (3.28 KB, text/plain)
2018-09-13 13:11 UTC, RobusGrobus95
Details
dxvk_dxgi.log (3.45 KB, text/plain)
2018-09-13 13:12 UTC, RobusGrobus95
Details
dxvk_d3d11.log (4.01 KB, text/plain)
2018-09-13 13:13 UTC, RobusGrobus95
Details
stdout.log (293 bytes, text/plain)
2018-09-13 13:13 UTC, RobusGrobus95
Details
BeastBattleSimulator_gamecrash.tar.gz (41.88 KB, application/gzip)
2018-09-13 13:18 UTC, RobusGrobus95
Details
Hack to get the applications working. (1.06 KB, patch)
2018-09-15 17:35 UTC, Bas Nieuwenhuizen
Details | Splinter Review

Description RobusGrobus95 2018-09-12 23:43:23 UTC
Many 32 bit games (Beast Battle Simulator, Bio Inc Redemption, Grey Goo and other) crashes with radv, but works with amdvlk (mostly). Crashes are stable and reproducible, appears when main gameplay starts (allocated GPU memory ~= 1900Mb). Crashes does not appear when amdvlk is used (allocated GPU memory amount is same or even larger).
Comment 1 Timothy Arceri 2018-09-13 03:21:33 UTC
(In reply to RobusGrobus95 from comment #0)
> Many 32 bit games (Beast Battle Simulator, Bio Inc Redemption, Grey Goo and
> other) crashes with radv, but works with amdvlk (mostly). Crashes are stable
> and reproducible, appears when main gameplay starts (allocated GPU memory ~=
> 1900Mb). Crashes does not appear when amdvlk is used (allocated GPU memory
> amount is same or even larger).

I tried Beast Battle Simulator with RADV from git, DXVK 0.71 and it didn't crash (although all text was missing from all menus).

Can you provide more details such as your hardware, Mesa version, LLVM version, also is there anything about the crash in the terminal if you launch steam there with the command:

wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Steam/Steam.exe

If you know how to grab a backtrace of the crash this would be even more useful.
Comment 2 Timothy Arceri 2018-09-13 03:36:48 UTC
Install fonts with winetricks fix the missing text problem so at least that game seems to work perfectly for me.
Comment 3 RobusGrobus95 2018-09-13 13:11:52 UTC
Created attachment 141546 [details]
stderr.log
Comment 4 RobusGrobus95 2018-09-13 13:12:29 UTC
Created attachment 141547 [details]
dxvk_dxgi.log
Comment 5 RobusGrobus95 2018-09-13 13:13:10 UTC
Created attachment 141548 [details]
dxvk_d3d11.log
Comment 6 RobusGrobus95 2018-09-13 13:13:27 UTC
Created attachment 141549 [details]
stdout.log
Comment 7 RobusGrobus95 2018-09-13 13:13:54 UTC
My hardware is:
  Motherboard - MSI X470 Gaming Pro AM4
  APU - AMD Ryzen 5 2400G with Radeon Vega Graphics (Raven Ridge)
  RAM - 2x DDR4 Goodram Iridium 8Gb 2800Mhz (Total: 16 Gb Dual channel 2800Mhz)

$ pacman -Qi lib32-mesa-git | grep -i version
Version         : 18.3.0_devel.104757.1a263b377c-1
Description     : an open-source implementation of the OpenGL specification, git version
$ pacman -Qi mesa-git | grep -i version
Version         : 18.3.0_devel.104757.1a263b377c-1
Description     : an open-source implementation of the OpenGL specification, git version
$ pacman -Qi llvm-svn | grep -i version
Version         : 8.0.0svn_r342120-1
$ pacman -Qi lib32-llvm-svn | grep -i version
Version         : 8.0.0svn_r342119-1
$ file ./BeastBattleSimulator.exe 
./BeastBattleSimulator.exe: PE32 executable (GUI) Intel 80386, for MS Windows
$ export VK_ICD_FILENAMES='/usr/share/vulkan/icd.d/radeon_icd.i686.json'
$ wine ./BeastBattleSimulator.exe 2>stderr.log >stdout.log
Comment 8 RobusGrobus95 2018-09-13 13:18:09 UTC
Created attachment 141550 [details]
BeastBattleSimulator_gamecrash.tar.gz

Crash log, created by game.
Comment 9 RobusGrobus95 2018-09-13 13:33:06 UTC
(In reply to RobusGrobus95 from comment #7)
> $ pacman -Qi lib32-mesa-git | grep -i version
> Version         : 18.3.0_devel.104757.1a263b377c-1
> Description     : an open-source implementation of the OpenGL specification,
> git version
> $ pacman -Qi mesa-git | grep -i version
> Version         : 18.3.0_devel.104757.1a263b377c-1
> Description     : an open-source implementation of the OpenGL specification,
> git version
> $ pacman -Qi llvm-svn | grep -i version
> Version         : 8.0.0svn_r342120-1
> $ pacman -Qi lib32-llvm-svn | grep -i version
> Version         : 8.0.0svn_r342119-1
My OS is ArchLinux x86_64.

I use mesa-git from AUR.
https://aur.archlinux.org/packages/mesa-git/
https://aur.archlinux.org/packages/lib32-mesa-git/

I use binary version of llvm-svn (build by kerberizer)
https://github.com/arch-llvm/llvm-svn
https://github.com/arch-llvm/lib32-llvm-svn
Comment 10 Bas Nieuwenhuizen 2018-09-15 17:35:42 UTC
Created attachment 141575 [details] [review]
Hack to get the applications working.
Comment 11 Bas Nieuwenhuizen 2018-09-15 17:36:53 UTC
This is a bug in DXVK triggered by radv specifics on APUs. See

https://github.com/doitsujin/dxvk/issues/640

In the meantime I attached a patch that you can apply to the mesa source to make the games run.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.