From: pflisiko Date: Wed, 13 Jan 2016 13:05:55 +0000 (+0100) Subject: corrected source buffer usage flags X-Git-Tag: upstream/0.1.0~812^2~166^2~14^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c5b4cbf1aeb77bcaaed18da216a0d80b7f3d3d28;p=platform%2Fupstream%2FVK-GL-CTS.git corrected source buffer usage flags --- diff --git a/external/vulkancts/modules/vulkan/memory/vktMemoryPipelineBarrierTests.cpp b/external/vulkancts/modules/vulkan/memory/vktMemoryPipelineBarrierTests.cpp index 761eeed..87a3338 100644 --- a/external/vulkancts/modules/vulkan/memory/vktMemoryPipelineBarrierTests.cpp +++ b/external/vulkancts/modules/vulkan/memory/vktMemoryPipelineBarrierTests.cpp @@ -2752,7 +2752,7 @@ void BufferCopyFromImage::prepare (PrepareContext& context) m_memory = bindImageMemory(vki, vkd, physicalDevice, device, *m_srcImage, 0); { - const vk::Unique srcBuffer (createBuffer(vkd, device, 4 * m_imageWidth * m_imageHeight, vk::VK_BUFFER_USAGE_TRANSFER_DST_BIT, vk::VK_SHARING_MODE_EXCLUSIVE, queueFamilies)); + const vk::Unique srcBuffer (createBuffer(vkd, device, 4 * m_imageWidth * m_imageHeight, vk::VK_BUFFER_USAGE_TRANSFER_SRC_BIT, vk::VK_SHARING_MODE_EXCLUSIVE, queueFamilies)); const vk::Unique memory (bindBufferMemory(vki, vkd, physicalDevice, device, *srcBuffer, vk::VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT)); const vk::Unique commandBuffer (createBeginCommandBuffer(vkd, device, commandPool, vk::VK_COMMAND_BUFFER_LEVEL_PRIMARY)); const vk::VkImageMemoryBarrier preImageBarrier = @@ -3184,7 +3184,7 @@ void ImageCopyFromImage::prepare (PrepareContext& context) m_memory = bindImageMemory(vki, vkd, physicalDevice, device, *m_srcImage, 0); { - const vk::Unique srcBuffer (createBuffer(vkd, device, 4 * m_imageWidth * m_imageHeight, vk::VK_BUFFER_USAGE_TRANSFER_DST_BIT, vk::VK_SHARING_MODE_EXCLUSIVE, queueFamilies)); + const vk::Unique srcBuffer (createBuffer(vkd, device, 4 * m_imageWidth * m_imageHeight, vk::VK_BUFFER_USAGE_TRANSFER_SRC_BIT, vk::VK_SHARING_MODE_EXCLUSIVE, queueFamilies)); const vk::Unique memory (bindBufferMemory(vki, vkd, physicalDevice, device, *srcBuffer, vk::VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT)); const vk::Unique commandBuffer (createBeginCommandBuffer(vkd, device, commandPool, vk::VK_COMMAND_BUFFER_LEVEL_PRIMARY)); const vk::VkImageMemoryBarrier preImageBarrier =