protonscr

VkPipelineCreateFlags2CreateInfo 0 flags

dxvkclosed
doitsujin/dxvk#5148 · opened 2025-08-13 by K0bin · updated 2026-06-16 · 4 comments · github
KK0bin 2025-08-13 github

There's a validation error about 0 flags being passed with VkPipelineCreateFlags2CreateInfo.
It doesn't cause any problems in practice but it's a bit ugly.

err: VUID-VkPipelineCreateFlags2CreateInfo-flags-requiredbitmask:
err: vkCreateComputePipelines(): pCreateInfos[0].pNext.flags is zero.
err: The Vulkan spec states: flags must not be 0 (https://docs.vulkan.org/spec/latest/chapters/pipelines.html#VUID-VkPipelineCreateFlags2CreateInfo-flags-requiredbitmask)

err: VUID-VkPipelineCreateFlags2CreateInfo-flags-requiredbitmask:
err: vkCreateComputePipelines(): pCreateInfos[0].pNext.flags is zero.
err: The Vulkan spec states: flags must not be 0 (https://docs.vulkan.org/spec/latest/chapters/pipelines.html#VUID-VkPipelineCreateFlags2CreateInfo-flags-requiredbitmask)

Ddoitsujin maintainer 2025-08-13 github

i don't understand that VU, what flag are we missing?

If this is just a generic rule that requires us to not pass the structure at all unless any flags are active, then that smells like a spec bug and a massive usability issue.

KK0bin maintainer 2025-08-13 github

I think we mustn't add VkPipelineCreateFlags2CreateInfo to the pNext chain if flags is 0.

Ddoitsujin maintainer 2025-08-13 github

That is... exceptionally stupid and annoying.

KK0bin maintainer 2025-08-13 github

Agreed, stupid pointless rule.

Nothing extracted yet.