Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 823ca85

Browse files
committed
Allow all vkBeginCommandBuffer flags
Our command buffer playback mechanism is safe for multiple inflight submissions of the same command buffer, so there is nothing special to do here. The problematic case of needing to carry some state from a primary command buffer into a secondary is already caught by the slightly later check for pInheritanceInfo. Bug: b/118619338 Change-Id: I782285fbc9127d59eeac7cbf79fea3f1952e3cde Reviewed-on: https://swiftshader-review.googlesource.com/c/25950 Tested-by: Chris Forbes <chrisforbes@google.com> Reviewed-by: Hernan Liatis <hliatis@google.com> Reviewed-by: Nicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
1 parent a2f5fd8 commit 823ca85

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Vulkan/VkCommandBuffer.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,12 @@ VkResult CommandBuffer::begin(VkCommandBufferUsageFlags flags, const VkCommandBu
553553
{
554554
ASSERT((state != RECORDING) && (state != PENDING));
555555

556-
if(!((flags == 0) || (flags == VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT)) || pInheritanceInfo)
556+
// Nothing interesting to do based on flags. We don't have any optimizations
557+
// to apply for ONE_TIME_SUBMIT or (lack of) SIMULTANEOUS_USE. RENDER_PASS_CONTINUE
558+
// must also provide a non-null pInheritanceInfo, which we don't implement yet, but is caught below.
559+
(void) flags;
560+
561+
if(pInheritanceInfo)
557562
{
558563
UNIMPLEMENTED();
559564
}

0 commit comments

Comments
 (0)