Environment:
- OS: LinuxARM64
- SDK or header version if building from repo: 1.4.328.1
Describe the Issue
I am seeing the following error when using vkCmdEndRendering2EXT with VkRenderPassFragmentDensityMapOffsetEndInfoEXT and VkRenderingEndInfoEXT.
VK ERROR : VALIDATION - Message Id Number: 1292382829 | Message Id Name: VUID-vkEndCommandBuffer-commandBuffer-00060
Validation Error: [ VUID-vkEndCommandBuffer-commandBuffer-00060 ] Object 0: handle = 0x7f950f0000, type = VK_OBJECT_TYPE_COMMAND_BUFFER; | MessageID = 0x4d08326d | vkEndCommandBuffer(): It is invalid to issue this call inside an active VkRenderPass 0x0[]. The Vulkan spec states: If commandBuffer is a primary command buffer, there must not be an active render pass instance (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-vkEndCommandBuffer-commandBuffer-00060)
My impression of what is happening here is that validation is not capturing vkCmdEndRendering2EXT as ending the renderpass so when it gets to vkEndCommandBuffer it thinks the renderpass was never closed. I believe this is a false positive. I dumped out the command log in the app and it seems correct.
Expected behavior
vkCmdEndRendering2EXT should be considered to end the renderpass.
Valid Usage ID
UID-vkEndCommandBuffer-commandBuffer-00060