-
Notifications
You must be signed in to change notification settings - Fork 450
layers: Improve err msg for dynamic rendering #10714
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
CI Vulkan-ValidationLayers build queued with queue ID 536202. |
CI Vulkan-ValidationLayers build # 21045 running. |
CI Vulkan-ValidationLayers build # 21045 passed. |
8f2fe52
to
c41afaf
Compare
CI Vulkan-ValidationLayers build queued with queue ID 536555. |
CI Vulkan-ValidationLayers build # 21052 running. |
CI Vulkan-ValidationLayers build # 21052 passed. |
LogError(vuid, cb_state.Handle(), loc, | ||
"It is invalid to issue this call inside an active render pass instance begun with vkCmdBeginRendering."); | ||
} else if (cb_state.active_render_pass->use_dynamic_rendering_inherited) { | ||
LogError(vuid, cb_state.Handle(), loc, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LogError(vuid, cb_state.Handle(), loc, | |
skip |= LogError(vuid, cb_state.Handle(), loc, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with fix to skip |=
c41afaf
to
0a79d01
Compare
CI Vulkan-ValidationLayers build queued with queue ID 537769. |
CI Vulkan-ValidationLayers build # 21065 running. |
1 similar comment
CI Vulkan-ValidationLayers build # 21065 running. |
Otherwise this code:
Will get you this error:
Validation Error: [ VUID-vkEndCommandBuffer-commandBuffer-00060 ] | 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://docs.vulkan.org/spec/latest/chapters/cmdbuffers.html#VUID-vkEndCommandBuffer-commandBuffer-00060)
Objects: 1
[0] VkCommandBuffer 0x26db64925e0
which is not the best