fix case 'buffer_to_image' - changed src buffer usage flags
authorpflisiko <pawel.flisikowski@intel.com>
Mon, 28 Dec 2015 14:40:22 +0000 (15:40 +0100)
committerscygan <slawomir.cygan@intel.com>
Tue, 29 Dec 2015 13:41:16 +0000 (14:41 +0100)
external/vulkancts/modules/vulkan/api/vktApiCopiesAndBlittingTests.cpp

index 562d3178c2125d312287ca79269bb6635db05ddc..24a547764d3e5f3c30a69e285d458fb6360e68a5 100644 (file)
@@ -670,7 +670,7 @@ CopyImageToImage::CopyImageToImage (Context& context, TestParams params)
                        1u,                                                                             // deUint32                             arraySize;
                        VK_SAMPLE_COUNT_1_BIT,                                  // deUint32                             samples;
                        VK_IMAGE_TILING_OPTIMAL,                                // VkImageTiling                tiling;
-                       VK_BUFFER_USAGE_TRANSFER_DST_BIT,               // VkImageUsageFlags    usage;
+                       VK_IMAGE_USAGE_TRANSFER_DST_BIT,                // VkImageUsageFlags    usage;
                        VK_SHARING_MODE_EXCLUSIVE,                              // VkSharingMode                sharingMode;
                        1u,                                                                             // deUint32                             queueFamilyCount;
                        &queueFamilyIndex,                                              // const deUint32*              pQueueFamilyIndices;
@@ -1282,7 +1282,7 @@ CopyBufferToImage::CopyBufferToImage (Context& context, TestParams testParams)
                        DE_NULL,                                                                        // const void*                  pNext;
                        0u,                                                                                     // VkBufferCreateFlags  flags;
                        m_bufferSize,                                                           // VkDeviceSize                 size;
-                       VK_BUFFER_USAGE_TRANSFER_DST_BIT,                       // VkBufferUsageFlags   usage;
+                       VK_BUFFER_USAGE_TRANSFER_SRC_BIT,                       // VkBufferUsageFlags   usage;
                        VK_SHARING_MODE_EXCLUSIVE,                                      // VkSharingMode                sharingMode;
                        1u,                                                                                     // deUint32                             queueFamilyIndexCount;
                        &queueFamilyIndex,                                                      // const deUint32*              pQueueFamilyIndices;