Some of the buffer memory requirement tests were using
vkGetBufferMemoryRequirements2 function and not checking
if the required feature/extension is enabled.
This CL adds the feature check.
Components: Vulkan
Affects:
dEQP-VK.api.buffer_memory_requirements.*.method2.*
VK-GL-CTS Issue: 3301
Change-Id: Ic99ab4d39a03cd3ec035a17a1c27aceeafa1e69a
const VkPhysicalDevice physDevice = context.getPhysicalDevice();
const std::vector<VkExtensionProperties> supportedExtensions = enumerateDeviceExtensionProperties(intf, physDevice, nullptr);
+ if (m_testConfig.useMethod2)
+ context.requireDeviceFunctionality("VK_KHR_get_memory_requirements2");
+
VkPhysicalDeviceProtectedMemoryFeatures protectedMemFeatures
{
vk::VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROTECTED_MEMORY_FEATURES, // VkStructureType sType;