Incorrect assertion for `VkRenderPassAttachmentBeginInfo` with a non-imageless `VkFramebuffer`
glebov-andrey opened this issue · 1 comments
When running my application with a debug build of AMDVLK, I get an assertion here:
Line 7911 in 0387177
vkCmdBeginRenderPass
is being called with a normal non-imageless VkFramebuffer
, and the VkRenderPassBeginInfo
chain contains a VkRenderPassAttachmentBeginInfo
structure with its attachmentCount == 0
.
This is explicitly permitted by the spec for non-imageless framebuffers here:
If
framebuffer
was created with aVkFramebufferCreateInfo::flags
value that did not includeVK_FRAMEBUFFER_CREATE_IMAGELESS_BIT
, and thepNext
chain includes aVkRenderPassAttachmentBeginInfo
structure, itsattachmentCount
must be zero.
It looks like the following call to SetImageViews(pRenderPassAttachmentBeginInfo)
doesn't actually do anything when attachmentCount == 0
, so this is probably just an incorrect assertion.
Fixed in 2023.Q1.1