-
Notifications
You must be signed in to change notification settings - Fork 949
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
Forced GPU selection prevents wgpu running on hybrid nvidia laptops #4101
Comments
I think we should apply the workaround conditionally on the mesa version. |
@teoxoy mesa version of? This block also prevents the use of Nvidia GL btw. |
The "block" was added to work around a bug in mesa. We should find the version of mesa in which it was fixed and conditionally apply the workaround on it.
That is most likely a different issue. This workaround is only present in our Vulkan backend. |
Mesa for what though, intel? I'm using To be as clear as I can, current wgpu will never work on hybrid with that block due to NVIDIA/egl-wayland#72 |
The fix upstream got released as part of mesa 21.2.
Right now it works on x11, but not on Wayland. Would you be interested in contributing the fix? |
Sure I don't mind. |
Due to an issue with Mesa versions less than 21.2 presentation on Vulkan was forced to Nvidia only. This in itself brought new issues around the Nvidia driver specfic format modifers. As of Mesa 21.2 the Intel vulkan issue is fixed. This commit enables presentation on versions 21.2 and above for Intel. References: - NVIDIA/egl-wayland#72 Closes gfx-rs#4101 Signed-off-by: Luke D. Jones <[email protected]>
Due to an issue with Mesa versions less than 21.2 presentation on Vulkan was forced to Nvidia only. This in itself brought new issues around the Nvidia driver specfic format modifers. As of Mesa 21.2 the Intel vulkan issue is fixed. This commit enables presentation on versions 21.2 and above for Intel. References: - NVIDIA/egl-wayland#72 Closes [gfx-rs#4101](gfx-rs#4101) Signed-off-by: Luke D. Jones <[email protected]>
Due to an issue with Mesa versions less than 21.2 presentation on Vulkan was forced to Nvidia only. This in itself brought new issues around the Nvidia driver specfic format modifers. As of Mesa 21.2 the Intel vulkan issue is fixed. This commit enables presentation on versions 21.2 and above for Intel. References: - NVIDIA/egl-wayland#72 Closes [#4101](#4101)
Due to an issue with Mesa versions less than 21.2 presentation on Vulkan was forced to Nvidia only. This in itself brought new issues around the Nvidia driver specfic format modifers. As of Mesa 21.2 the Intel vulkan issue is fixed. This commit enables presentation on versions 21.2 and above for Intel. References: - NVIDIA/egl-wayland#72 Closes [gfx-rs#4101](gfx-rs#4101)
The block at
wgpu/wgpu-hal/src/vulkan/instance.rs
Line 771 in 625afc3
So what is happening for every Nvidia hybrid user is:
Given the above, this commit should be reverted, and be done before the next release of wgpu.
Related: #1215 (nvidia provides ways to force nvidia gpu selection)
Related: #1898 (the commit)
The text was updated successfully, but these errors were encountered: