From a1cbc1636dcf35f24d3bd4f4b047c6a82a7aa82d Mon Sep 17 00:00:00 2001 From: ziga-lunarg Date: Wed, 21 Sep 2022 19:11:03 +0200 Subject: [PATCH] Fix srcStageMask in vkCmdWaitEvents in secondary cmd buffers tests If event is set with vkCmdSetEvent the srcStageMask must be VK_PIPELINE_STAGE_HOST_BIT Components: Vulkan VK-GL-CTS issue: 3980 Affected tests: dEQP-VK.api.command_buffers.secondary_execute_twice Change-Id: Ib784e454ecf2bead488a267a069111da16ddfa8d --- external/vulkancts/modules/vulkan/api/vktApiCommandBuffersTests.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/external/vulkancts/modules/vulkan/api/vktApiCommandBuffersTests.cpp b/external/vulkancts/modules/vulkan/api/vktApiCommandBuffersTests.cpp index afe6342..ef0feb0 100644 --- a/external/vulkancts/modules/vulkan/api/vktApiCommandBuffersTests.cpp +++ b/external/vulkancts/modules/vulkan/api/vktApiCommandBuffersTests.cpp @@ -3413,11 +3413,8 @@ tcu::TestStatus executeSecondaryBufferTwiceTest(Context& context) // record secondary command buffer VK_CHECK(vk.beginCommandBuffer(cmdBuffers[ndx], &secCmdBufBeginInfo)); { - // allow execution of event during every stage of pipeline - VkPipelineStageFlags stageMask = VK_PIPELINE_STAGE_ALL_COMMANDS_BIT; - // wait for event - vk.cmdWaitEvents(cmdBuffers[ndx], 1, &eventOne.get(), stageMask, stageMask, 0, DE_NULL, 0u, DE_NULL, 0u, DE_NULL); + vk.cmdWaitEvents(cmdBuffers[ndx], 1, &eventOne.get(), VK_PIPELINE_STAGE_HOST_BIT, VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, 0, DE_NULL, 0u, DE_NULL, 0u, DE_NULL); } // end recording of secondary buffers endCommandBuffer(vk, cmdBuffers[ndx]); -- 2.7.4