From: Vidar Lilleboe Date: Fri, 16 Sep 2016 11:21:02 +0000 (+0200) Subject: Fix barrier stage masks in synchronization tests X-Git-Tag: upstream/0.1.0~662^2~30^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=02e02b1c5acf6aec834c1f0971eb29f661582d8c;p=platform%2Fupstream%2FVK-GL-CTS.git Fix barrier stage masks in synchronization tests Fixes #497 Change-Id: I225344335a13b0347cf6ad34e38c3f0a181d41cd --- diff --git a/external/vulkancts/modules/vulkan/synchronization/vktSynchronizationOperation.cpp b/external/vulkancts/modules/vulkan/synchronization/vktSynchronizationOperation.cpp index 8449137..1312d67 100644 --- a/external/vulkancts/modules/vulkan/synchronization/vktSynchronizationOperation.cpp +++ b/external/vulkancts/modules/vulkan/synchronization/vktSynchronizationOperation.cpp @@ -1347,7 +1347,7 @@ public: VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, *m_srcImage, m_resource.getImage().subresourceRange); - vk.cmdPipelineBarrier(cmdBuffer, VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, m_pipelineStage, (VkDependencyFlags)0, + vk.cmdPipelineBarrier(cmdBuffer, VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, VK_PIPELINE_STAGE_TRANSFER_BIT, (VkDependencyFlags)0, 0u, DE_NULL, 0u, DE_NULL, 1u, &barrier); } @@ -1361,7 +1361,7 @@ public: VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, VK_IMAGE_LAYOUT_GENERAL, *m_srcImage, m_resource.getImage().subresourceRange); - vk.cmdPipelineBarrier(cmdBuffer, VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, m_pipelineStage, (VkDependencyFlags)0, + vk.cmdPipelineBarrier(cmdBuffer, VK_PIPELINE_STAGE_TRANSFER_BIT, m_pipelineStage, (VkDependencyFlags)0, 0u, DE_NULL, 0u, DE_NULL, 1u, &barrier); } }