Change buffer tests to use queried memory type index
authorJeff Bolz <jbolz@nvidia.com>
Sat, 30 Jan 2016 18:24:22 +0000 (18:24 +0000)
committerJeff Bolz <jbolz@nvidia.com>
Sat, 30 Jan 2016 18:24:22 +0000 (18:24 +0000)
external/vulkancts/modules/vulkan/api/vktApiBufferTests.cpp
external/vulkancts/modules/vulkan/api/vktApiBufferViewCreateTests.cpp

index 474e646..dddeb86 100644 (file)
@@ -148,7 +148,7 @@ private:
                        VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO,
                        NULL,
                        memReqs.size,
-                       0                                                                               //      deUint32                memoryTypeIndex
+                       deCtz32(memReqs.memoryTypeBits)                         //      deUint32                memoryTypeIndex
                };
 
                try
index 4e49496..279d7b6 100644 (file)
@@ -151,7 +151,7 @@ tcu::TestStatus BufferViewTestInstance::iterate (void)
                VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO,         //      VkStructureType         sType
                NULL,                                                                           //      const void*                     pNext
                memReqs.size,                                                           //      VkDeviceSize            allocationSize
-               0                                                                                       //      deUint32                        memoryTypeIndex
+               deCtz32(memReqs.memoryTypeBits)                         //      deUint32                        memoryTypeIndex
        };
 
        {