vkd.cmdPipelineBarrier(*cmdBuffer,
(VkPipelineStageFlags)VK_PIPELINE_STAGE_TRANSFER_BIT,
- (VkPipelineStageFlags)VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT,
+ (VkPipelineStageFlags)VK_PIPELINE_STAGE_ALL_COMMANDS_BIT,
(VkDependencyFlags)0u,
0u,
(const VkMemoryBarrier*)DE_NULL,
vkd.cmdPipelineBarrier(*cmdBuffer,
(VkPipelineStageFlags)VK_PIPELINE_STAGE_HOST_BIT,
- (VkPipelineStageFlags)VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT,
+ (VkPipelineStageFlags)VK_PIPELINE_STAGE_ALL_COMMANDS_BIT,
(VkDependencyFlags)0u,
0u,
(const VkMemoryBarrier*)DE_NULL,
makeExtent3D(planeW, planeH, 1u),
};
- vkd.cmdCopyImageToBuffer(*cmdBuffer, image, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, **stagingBuffers[planeNdx], 1u, ©);
+ vkd.cmdCopyImageToBuffer(*cmdBuffer, image, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, **stagingBuffers[planeNdx], 1u, ©);
}
{
const VkBufferMemoryBarrier postCopyBarrier =
vkd.cmdPipelineBarrier(*cmdBuffer,
(VkPipelineStageFlags)VK_PIPELINE_STAGE_TRANSFER_BIT,
- (VkPipelineStageFlags)VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT,
+ (VkPipelineStageFlags)VK_PIPELINE_STAGE_HOST_BIT,
(VkDependencyFlags)0u,
0u,
(const VkMemoryBarrier*)DE_NULL,
};
vkd.cmdPipelineBarrier(*cmdBuffer,
+ (VkPipelineStageFlags)VK_PIPELINE_STAGE_ALL_COMMANDS_BIT,
(VkPipelineStageFlags)VK_PIPELINE_STAGE_HOST_BIT,
- (VkPipelineStageFlags)VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT,
(VkDependencyFlags)0u,
0u,
(const VkMemoryBarrier*)DE_NULL,