Enable required features in mutable_descriptor tests
authorziga-lunarg <ziga@lunarg.com>
Sat, 21 Jan 2023 20:25:42 +0000 (21:25 +0100)
committerPiotr Byszewski <piotr.byszewski@mobica.com>
Fri, 3 Feb 2023 14:43:29 +0000 (14:43 +0000)
Support for the required features is checked, but they are not enabled
when creating a custom device

Components: Vulkan

VK-GL-CTS issue: 4246

Affected tests:
dEQP-VK.binding_model.mutable_descriptor.*

Change-Id: Ief95fb37f70b451a402af305266e78507c8bcb16

external/vulkancts/modules/vulkan/binding_model/vktBindingMutableTests.cpp

index 07fd9bb86ad60ec5b89be590e8ca869033fdb7bf..330f330241009b4570fc4799504723775e840262 100644 (file)
@@ -106,8 +106,13 @@ VkDevice getDevice(Context& context)
                for (size_t ndx = 0; ndx < nonCoreExtensions.size(); ++ndx)
                        extensionPtrs[ndx] = nonCoreExtensions[ndx].c_str();
 
-               VkPhysicalDeviceMutableDescriptorTypeFeaturesEXT        mutableDescriptorTypeFeatures   = initVulkanStructure();
-               VkPhysicalDeviceFeatures2                                                       features2                                       = initVulkanStructure(&mutableDescriptorTypeFeatures);
+               VkPhysicalDeviceAccelerationStructureFeaturesKHR        accelerationStructureFeatures   = initVulkanStructure();
+               VkPhysicalDeviceBufferDeviceAddressFeatures                     bufferDeviceAddressFeatures             = initVulkanStructure(&accelerationStructureFeatures);
+               VkPhysicalDeviceRayTracingPipelineFeaturesKHR           rayTracingPipelineFeatures              = initVulkanStructure(&bufferDeviceAddressFeatures);
+               VkPhysicalDeviceRayQueryFeaturesKHR                                     rayQueryFeatures                                = initVulkanStructure(&rayTracingPipelineFeatures);
+               VkPhysicalDeviceMutableDescriptorTypeFeaturesEXT        mutableDescriptorTypeFeatures   = initVulkanStructure(&rayQueryFeatures);
+               VkPhysicalDeviceDescriptorIndexingFeatures                      descriptorIndexingFeatures              = initVulkanStructure(&mutableDescriptorTypeFeatures);
+               VkPhysicalDeviceFeatures2                                                       features2                                               = initVulkanStructure(&descriptorIndexingFeatures);
 
                context.getInstanceInterface().getPhysicalDeviceFeatures2(context.getPhysicalDevice(), &features2);