-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vulkan Error no WSI support on physical device 0 #4012
Comments
rokups
added a commit
to rokups/imgui
that referenced
this issue
Apr 6, 2021
…ble, or use first GPU otherwise. (ocornut#4012) Fixes examples failing on optimus laptops with integrated graphics not supporting Vulkan.
rokups
added a commit
to rokups/imgui
that referenced
this issue
Apr 6, 2021
…ble, or use first GPU otherwise. (ocornut#4012) Fixes examples failing on optimus laptops with integrated graphics not supporting Vulkan.
I've tested the following change and it works properly on my laptop.
|
ocornut
pushed a commit
that referenced
this issue
Apr 7, 2021
…ble, or use first GPU otherwise. (#4012) Fixes examples failing on optimus laptops with integrated graphics not supporting Vulkan.
Merged fix by @rokups. Thank you both! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I compiled the example_glfw_vulkan and example_sdl_vulkan using g++ on CentOS 8. But when I try to run the compiled apps, both examples give me an error message saying "Error no WSI support on physical device 0". After doing some debugging, I found the issue is caused by the Intel GPU and the RTX 2060 GPU in my laptop. In line 120 of main.cpp, the code g_PhysicalDevice = gpus[0]; is using the first GPU without checking if it supports vulkan. And it turns out the first GPU (intel integrated) does not support vulkan. After changing the code to use the 2nd GPU, g_PhysicalDevice = gpus[1]; the program works properly.
The text was updated successfully, but these errors were encountered: