https://bugs.winehq.org/show_bug.cgi?id=49298
Bug ID: 49298 Summary: Path of Exile crashes when switching to Vulkan Renderer on RADV. Switching works in proton. Product: Wine Version: 5.9 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winevulkan Assignee: wine-bugs@winehq.org Reporter: GloriousEggroll@gmail.com Distribution: ---
Path of Exile introduced a new Vulkan renderer in the game.
When switching to Vulkan in-game, the game pauses for a few seconds then crashes.
If I switch to proton/steam play, the switch to the vulkan renderer in-game, it works fine and switches as expected.
This leads me to believe this is either a winevulkan or winex11.drv problem, since those are the two main graphical differences between Standard wine and Proton. The fact that it runs on proton with RADV also shows that RADV is likely not the issue.
Current system is Fedora 32 with KDE, mesa-git as of 5/29/20, Vega VII, Ryzen 3950x
https://bugs.winehq.org/show_bug.cgi?id=49298
--- Comment #1 from GloriousEggroll@gmail.com --- Created attachment 67305 --> https://bugs.winehq.org/attachment.cgi?id=67305 debug with +vulkan
debug log with +vulkan. lmk if you need more.
game is free to play, may be easy to just download for debugging
https://bugs.winehq.org/show_bug.cgi?id=49298
--- Comment #2 from GloriousEggroll@gmail.com --- Created attachment 67501 --> https://bugs.winehq.org/attachment.cgi?id=67501 this is the error you get with wine/wine-staging with most recent mesa
https://bugs.winehq.org/show_bug.cgi?id=49298
--- Comment #3 from GloriousEggroll@gmail.com --- Created attachment 67506 --> https://bugs.winehq.org/attachment.cgi?id=67506 Fix for PoE vulkan renderer VkSurfaceCapabilitiesKHR reporting 0 maxImageCount
So the problem is RADV reports 0 for VkSurfaceCapabilitiesKHR maxImageCount, which is normal and in-spec:
https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkSurf...
However, some games do not handle this correct. Both DXGI and AMDVLK's driver report 16 if there is no maxImageCount set:
https://vulkan.gpuinfo.org/displayreport.php?id=8401#surface
https://github.com/ValveSoftware/wine/commit/8d4d71c79999a842524b0542bfe13c5...
And per conversation with a few of the dxvk/d9vk devs, setting it equal to minImageCount can be problematic. So this patch replicates what DXGI and AMDVLKD do by setting it to 16 if no max is set.
https://bugs.winehq.org/show_bug.cgi?id=49298
--- Comment #4 from GloriousEggroll@gmail.com --- Also note that although this allows the Vulkan renderer to swap properly with RADV, you will still need mesa updated to https://gitlab.freedesktop.org/mesa/mesa/-/commit/c977567db65e3430d1b7323f69... or higher to prevent additional graphical glitches.
https://bugs.winehq.org/show_bug.cgi?id=49298
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
https://bugs.winehq.org/show_bug.cgi?id=49298
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |leslie_alistair@hotmail.com Ever confirmed|0 |1 Status|UNCONFIRMED |STAGED Staged patchset| |https://github.com/wine-sta | |giang/wine-staging/tree/mas | |ter/patches/winevulkan-vkGe | |tPhysicalDeviceSurfaceCapab | |ilitiesKHR
https://bugs.winehq.org/show_bug.cgi?id=49298
wine.bugzilla@johnthomson.fastmail.com.au changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wine.bugzilla@johnthomson.f | |astmail.com.au
--- Comment #5 from wine.bugzilla@johnthomson.fastmail.com.au --- This is resolved fixed by 1e074c39f635c585595e9f3ece99aa290a7f9cf8 (wine 5.14) winevulkan: Avoid returning 0 for swapchain maxImageCount.
https://bugs.winehq.org/show_bug.cgi?id=49298
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com Fixed by SHA1| |1e074c39f635c585595e9f3ece9 | |9aa290a7f9cf8 Resolution|--- |FIXED Status|STAGED |RESOLVED
--- Comment #6 from Zebediah Figura z.figura12@gmail.com --- Fixed by https://source.winehq.org/git/wine.git/commitdiff/1e074c39f635c585595e9f3ece99aa290a7f9cf8.
https://bugs.winehq.org/show_bug.cgi?id=49298
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 5.21.