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.