-
Notifications
You must be signed in to change notification settings - Fork 158
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
vkcube compiled to use VK_KHR_display should (but does not) automatically select the correct vkPhysicalDevice #429
Comments
This is still an issue on master I think? |
Yes, but you can specify the physical device to use on the command line (--gpu_number ) |
But this only allows me to test one one specific gpu right? The tool crashes for me on any other GPU, I assume because of this issue. |
The option lets you select the GPU that supports If you are curious about the code that would do this selection, take a look at this sample. The cube demo could be easily modified to do this same sort of selection on Linux-like platforms because the cube app is already set up to support multiple types of presentation platforms, selected at compile time via |
Yes, this is still an issue. Here's a variation of the general issue: There was a recent bug in our bug tracker where an end user had an AMD iGPU plus an NV dGPU. There was a driver for the NV GPU but no driver installed for the AMD GPU. Because the AMD GPU is the one that cube selected by default, the user got a "VkEnumeratePhysicalDevices Failure" popup when he launched cube.exe. After installing the AMD driver cube.exe would run. The bug report indicates that this was not the |
Okay, so I think my problem is actually related to #370. Everything works fine when running under X11. |
Fixed in #494 |
When you compile vkcube to use
VK_KHR_display
, it does not automatically select avkPhysicalDevice
that matches thevkDisplayKHR
that it selects. This can happen when more than one physical device is present. The result is that the app fails with error message, or it crashes.Commit 50e737c added a new command-line option for selecting the Nth physical device (from the order that the Vulkan loader/runtime enumerates physical devices). But it's not really satisfying to require the user to try various values of N until one of them finally succeeds.
The app should have a default behavior that is reasonable. It should, by default, select a physical device that is viable for the chosen display.
The text was updated successfully, but these errors were encountered: