Change buffer tests to use queried memory type index
diff --git a/external/vulkancts/modules/vulkan/api/vktApiBufferTests.cpp b/external/vulkancts/modules/vulkan/api/vktApiBufferTests.cpp
index 474e646..dddeb86 100644
--- a/external/vulkancts/modules/vulkan/api/vktApiBufferTests.cpp
+++ b/external/vulkancts/modules/vulkan/api/vktApiBufferTests.cpp
@@ -148,7 +148,7 @@
VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO,
NULL,
memReqs.size,
- 0 // deUint32 memoryTypeIndex
+ deCtz32(memReqs.memoryTypeBits) // deUint32 memoryTypeIndex
};
try
diff --git a/external/vulkancts/modules/vulkan/api/vktApiBufferViewCreateTests.cpp b/external/vulkancts/modules/vulkan/api/vktApiBufferViewCreateTests.cpp
index 4e49496..279d7b6 100644
--- a/external/vulkancts/modules/vulkan/api/vktApiBufferViewCreateTests.cpp
+++ b/external/vulkancts/modules/vulkan/api/vktApiBufferViewCreateTests.cpp
@@ -151,7 +151,7 @@
VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO, // VkStructureType sType
NULL, // const void* pNext
memReqs.size, // VkDeviceSize allocationSize
- 0 // deUint32 memoryTypeIndex
+ deCtz32(memReqs.memoryTypeBits) // deUint32 memoryTypeIndex
};
{