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

VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR Present When Portability Extension Is Not #4004

Closed
cwfitzgerald opened this issue Aug 3, 2023 · 2 comments · Fixed by #4038
Labels
api: vulkan Issues with Vulkan type: bug Something isn't working

Comments

@cwfitzgerald
Copy link
Member

Test the suppress-obs-vuid using the latest wgpu (wgpu-hal with Suppress validation error caused by OBS layer (#4002)):

wgpu = { git = "https://github.com/gfx-rs/wgpu.git" }

on Windows 11, Nvidia RTX 3060 with Vulkan backend. Still got a validation error:

VUID-VkInstanceCreateInfo-flags-zerobitmask(ERROR / SPEC): msgNum: 1636402386 - Validation Error: [ VUID-VkInstanceCreateInfo-flags-zerobitmask ] Object 0: VK_NULL_HANDLE, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0x618984d2 | vkCreateInstance: parameter pCreateInfo->flags must be 0. The Vulkan spec states: flags must be 0 (https://vulkan.lunarg.com/doc/view/1.3.204.1/windows/1.3-extensions/vkspec.html#VUID-VkInstanceCreateInfo-flags-zerobitmask)

However, this error only occurs once, but not on every frame, which is different from the previous error that is logged every frame.

The app runs fine, but this error is still very annoying.

Originally posted by @jack1232 in #4002 (comment)

@jimblandy
Copy link
Member

For the sake of searches, I'll just mention VUID-VkInstanceCreateInfo-flags-06559 here.

jimblandy added a commit to jimblandy/wgpu that referenced this issue Aug 11, 2023
VUID-VkInstanceCreateInfo-flags-06559 forbids us from passing
`vk::InstanceCreateFlags::ENUMERATE_PORTABILITY_KHR` unless we
actually found and requested the "VK_KHR_portability_enumeration"
layer.

Fixes gfx-rs#4004.
jimblandy added a commit to jimblandy/wgpu that referenced this issue Aug 11, 2023
VUID-VkInstanceCreateInfo-flags-06559 forbids us from passing
`vk::InstanceCreateFlags::ENUMERATE_PORTABILITY_KHR` unless we
actually found and requested the "VK_KHR_portability_enumeration"
layer.

Fixes gfx-rs#4004.
jimblandy added a commit to jimblandy/wgpu that referenced this issue Aug 12, 2023
VUID-VkInstanceCreateInfo-flags-06559 forbids us from passing
`vk::InstanceCreateFlags::ENUMERATE_PORTABILITY_KHR` unless we
actually found and requested the "VK_KHR_portability_enumeration"
extension.

Fixes gfx-rs#4004.
jimblandy added a commit to jimblandy/wgpu that referenced this issue Aug 12, 2023
VUID-VkInstanceCreateInfo-flags-06559 forbids us from passing
`vk::InstanceCreateFlags::ENUMERATE_PORTABILITY_KHR` unless we
actually found and requested the "VK_KHR_portability_enumeration"
extension.

Fixes gfx-rs#4004.
jimblandy added a commit to jimblandy/wgpu that referenced this issue Aug 12, 2023
VUID-VkInstanceCreateInfo-flags-06559 forbids us from passing
`vk::InstanceCreateFlags::ENUMERATE_PORTABILITY_KHR` unless we
actually found and requested the "VK_KHR_portability_enumeration"
extension.

Fixes gfx-rs#4004.
@jack1232
Copy link

It works. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: vulkan Issues with Vulkan type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants