dxvk icon indicating copy to clipboard operation
dxvk copied to clipboard

VkPipelineCreateFlags2CreateInfo 0 flags

Open K0bin opened this issue 5 months ago • 4 comments

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<VkPipelineCreateFlags2CreateInfo>.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<VkPipelineCreateFlags2CreateInfo>.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)

K0bin avatar Aug 13 '25 17:08 K0bin

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.

doitsujin avatar Aug 13 '25 18:08 doitsujin

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

K0bin avatar Aug 13 '25 18:08 K0bin

That is... exceptionally stupid and annoying.

doitsujin avatar Aug 13 '25 18:08 doitsujin

Agreed, stupid pointless rule.

K0bin avatar Aug 13 '25 18:08 K0bin