Skip to content

Conversation

arno-lunarg
Copy link
Contributor

@arno-lunarg arno-lunarg commented Sep 22, 2025

Otherwise this code:

    m_command_buffer.Begin();
    vk::CmdBeginRenderingKHR(m_command_buffer, &rendering_info);
    //vk::CmdEndRenderingKHR(m_command_buffer);
    m_command_buffer.End();

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

@arno-lunarg arno-lunarg requested a review from a team as a code owner September 22, 2025 17:55
@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 536202.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 21045 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 21045 passed.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 536555.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 21052 running.

@ci-tester-lunarg
Copy link
Collaborator

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,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
LogError(vuid, cb_state.Handle(), loc,
skip |= LogError(vuid, cb_state.Handle(), loc,

Copy link
Contributor

@spencer-lunarg spencer-lunarg left a 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 |=

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 537769.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 21065 running.

1 similar comment
@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 21065 running.

@arno-lunarg arno-lunarg merged commit 25fcaa2 into KhronosGroup:main Sep 24, 2025
20 of 21 checks passed
@arno-lunarg arno-lunarg deleted the arno-improve-vu branch September 24, 2025 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants