KhronosGroup / Vulkan-Samples

One stop solution for all Vulkan samples
Apache License 2.0
4.36k stars 648 forks source link

Sample multi draw indirect throws validation errors at startup #1198

Closed SaschaWillems closed 3 days ago

SaschaWillems commented 1 month ago

When running the multi draw indirect sample on Windows with an RTX 4070 and the latest SDK I get multiple validation errors at startup:

[error] 1142734219 - VUID-VkBufferMemoryBarrier-None-09050: Validation Error: [ VUID-VkBufferMemoryBarrier-None-09050 ] Object 0: handle = 0x213ba640090, type = VK_OBJECT_TYPE_COMMAND_BUFFER; | MessageID = 0x441cbd8b | vkCmdPipelineBarrier(): pBufferMemoryBarriers[0].buffer barrier using VkBuffer VkBuffer 0x38ea17000000074c[] created with sharingMode VK_SHARING_MODE_CONCURRENT, has srcQueueFamilyIndex 0 (VALID). Source queue family must be VK_QUEUE_FAMILY_IGNORED or VK_QUEUE_FAMILY_EXTERNAL. The Vulkan spec states: If the synchronization2 feature is not enabled, and buffer was created with a sharing mode of VK_SHARING_MODE_CONCURRENT, srcQueueFamilyIndex must be VK_QUEUE_FAMILY_IGNORED or VK_QUEUE_FAMILY_EXTERNAL (https://vulkan.lunarg.com/doc/view/1.3.290.0/windows/1.3-extensions/vkspec.html#VUID-VkBufferMemoryBarrier-None-09050)
SaschaWillems commented 3 days ago

Seems this was fixed with #1218 already, that PR simply didn't reference this issue so it didn't get automatically closed.