Dota-2-Vulkan icon indicating copy to clipboard operation
Dota-2-Vulkan copied to clipboard

Cannot start Dota 2 with vulkan Win10 x64 rx580

Open Nmzik opened this issue 6 years ago • 7 comments

Your system information

  • System information from steam (Steam -> Help -> System Information) in a gist: https://gist.github.com/Nmzik/2d17298f92e052e2baea521432127f12
  • Have you checked for system updates?: [Yes/No] Yes
  • Are you using the latest stable video driver available for your system? [Yes/No] Yes
  • Have you verified the game files?: [Yes/No] Yes

Please describe your issue in as much detail as possible:

Describe what you expected should happen and what did happen. Please link any large pastes as a Github Gist.

Steps for reproducing this issue:

  1. Set launch options to -vulkan
  2. Start the game
  3. Nothing happens - For a second dota 2 icon shows up in taskbar and then dissapears.

-dx9/-dx11 and -gl working great.

Console Log:

[RenderSystem] Loaded video settings config from 'cfg\video.txt' [RenderSystem] Vulkan Physical Device: Radeon RX 580 Series [RenderSystem] Vulkan extension enabled: VK_KHR_swapchain [RenderSystem] Vulkan extension enabled: VK_KHR_descriptor_update_template [RenderSystem] Vulkan extension enabled: VK_KHR_image_format_list [RenderSystem] Vulkan extension enabled: VK_KHR_maintenance1 [RenderSystem] Vulkan Command Buffer Pool Threshold(1500) [RenderSystem] Unable to open Vulkan pipeline cache shadercache\vulkan\shaders.cache file - might not exist yet. [RenderSystem] Requested memory properties that are not supported for this allocation. Requested (7). [RenderSystem] Failed to find adequate memory type for buffer.

Nmzik avatar Apr 01 '18 09:04 Nmzik

Are you running an RX 580 in an external GPU enclosure connected to your Macbook Pro? Could you please post the output of vulkaninfo in a gist? If you don't have it, you can install the LunarG Vulkan SDK from https://vulkan.lunarg.com/.

danginsburg avatar Apr 02 '18 13:04 danginsburg

Yes, I do. But it should not make any difference. Windows sees only two GPUs: Intel(integrated) and AMD. Dota2.exe always uses eGPU ("High performance mode" in Switchable Graphics option menu). Vulkaninfo log: https://gist.github.com/Nmzik/9577623331004501953d782c2358ed8e

Nmzik avatar Apr 02 '18 19:04 Nmzik

But it should not make any difference.

I suspect it does make a difference. Based on the log, I believe what is happening is that the game is looking for an allocation with VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT | VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT set. Normally, for AMD, this would be in their 256MB GPU local CPU visible heap. However, since the GPU is external, it would appear that vkGet[Memory|Buffer]ImageRequirements is returning a memoryTypeBits that doesn't contain any of the memory types that would support this kind of allocation.

Since I don't have the eGPU hardware and am not sure how this should work in eGPU configuration, I'll need to ask AMD for help on this one.

danginsburg avatar Apr 02 '18 20:04 danginsburg

Are you using the Macbook Pro's builtin monitor or do you have an external monitor hocked up to the eGPU?

JordanLogan-AMD avatar Apr 03 '18 20:04 JordanLogan-AMD

I do have an external monitor. But even with external monitor I can't get Dota 2 to load/render anything. I still have the same error :

Failed to find adequate memory type for buffer.

Nmzik avatar Apr 03 '18 20:04 Nmzik

~~Moreover, I can not downgrade Vulkan RT version to 1.0.26.0. It's too old for my GPU. There are some people claiming that it can help with Vulkan crashing. https://www.reddit.com/r/Amd/comments/637yyd/psa_if_you_are_impacted_by_the_rx_480_doom_vulkan/~~

Nmzik avatar Apr 03 '18 20:04 Nmzik

Is there any additional info i need to provide? With latest drivers 18.4.1 i still have the same crash. Any other games/apps (aside from Dota 2) which uses Vulkan API work great on my eGPU (It seems they use different flags on initialization?).

Nmzik avatar May 07 '18 15:05 Nmzik