-
Notifications
You must be signed in to change notification settings - Fork 905
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
supports_queue_family assertion fails, possibly because of two different gpus #543
Comments
Thank you for filing! That's a tough issue here, and we need a good plan for that together with @Kangz. When you are requesting an adapter, we don't know what surface you'd want to use it with, so it may end up incompatible with the surface. |
Excuse me if I'm over simplifying it, I do not mean to trivialize the complexity of the issue, especially knowning that Vulkan provides a much lower level interface, however could the answer be found in how OpenGL or DX12 handle the issue? Not only does the OpenGL version initialize on this machine with two different GPUs, I can drag the window from one GPU display to the other. Just a thought. |
@Nejat I can tell you how :)
Since WebGPU API is shaped as "request an adapter", we'll be checking for compatibility with a surface at that moment, and we need to know which surface you want to use it with. |
@kvark Thank you for the clarification |
Fixed by #545 |
543: Don't use `log` crate in include_spirv r=kvark a=kvark Fixes gfx-rs#541 Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
I first ran across this while running the provided examples in the coffee project using the
vulkan
feature ...thread 'main' panicked at 'assertion failed: suf.supports_queue_family(&adapter.raw.queue_families[0])', /home/nejat/.cargo/registry/src/github.com-1ecc6299db9ec823/wgpu-native-0.4.3/src/device.rs:2059:9
Seeing that the assertion failure was in the wgpu-native crate, I went back to test a program I wrote using the Pixels project, which also depends on the same crate, and the project that was working before now has the same exact assertion failure as above.
There is one change in the system I'm using that might help point to what is causing this issue, but I have not been able to debug it.
Originally I had a single
RTX 2080 ti
when my Pixels based application worked. I recently added a second GPU, aRadeon Pro WX 5100
.Is it possible the existence of two GPUs might be the cause of the assertion failure?
This is all on
Pop!_OS 19.10
The text was updated successfully, but these errors were encountered: