Skip to content
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: fix issues querying multiview support #2934

Merged
merged 1 commit into from
Aug 2, 2022

Conversation

i509VCB
Copy link
Contributor

@i509VCB i509VCB commented Aug 1, 2022

Checklist

  • Run cargo clippy.
  • Run RUSTFLAGS=--cfg=web_sys_unstable_apis cargo clippy --target wasm32-unknown-unknown if applicable.
  • Add change to CHANGELOG.md. See simple instructions inside file.

Connections
This starts part of #2925 by removing no longer using VkPhysicalDeviceVulkan11Features. VkPhysicalDeviceVulkan11Features may imply availability in Vulkan 1.1, but confusingly it is only first available in Vulkan 1.2. Vulkan 1.1 supports chaining the VkPhysicalDeviceMultiviewFeatures type, which is aliased by the KHR name to get this information instead. It is cleaner for the implementation to chain specific feature/properties structures instead of switching between the specific and Vulkan1X feature/properties structures.

Description
The Vulkan hal did not chain VkPhysicalDeviceMultiviewFeatures to the VkDeviceCreateInfo. This meant that with drivers that only support Vulkan 1.0 and VK_KHR_multiview would false report no support for the MULTIVIEW feature.

Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@cwfitzgerald cwfitzgerald merged commit 8444fbe into gfx-rs:master Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants