diff options
Diffstat (limited to 'external/vulkancts/modules/vulkan/api/vktApiFeatureInfo.cpp')
-rw-r--r-- | external/vulkancts/modules/vulkan/api/vktApiFeatureInfo.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/external/vulkancts/modules/vulkan/api/vktApiFeatureInfo.cpp b/external/vulkancts/modules/vulkan/api/vktApiFeatureInfo.cpp index b3b5d2a0a..e9588d204 100644 --- a/external/vulkancts/modules/vulkan/api/vktApiFeatureInfo.cpp +++ b/external/vulkancts/modules/vulkan/api/vktApiFeatureInfo.cpp @@ -3514,13 +3514,8 @@ VkFormatFeatureFlags getRequiredOptimalExtendedTilingFeatures (Context& context, if ( de::contains(DE_ARRAY_BEGIN(s_requiredSampledImageFilterCubicFormats), DE_ARRAY_END(s_requiredSampledImageFilterCubicFormats), format) ) flags |= VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_EXT; - VkPhysicalDeviceFeatures2 coreFeatures; - deMemset(&coreFeatures, 0, sizeof(coreFeatures)); - - coreFeatures.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2; - coreFeatures.pNext = DE_NULL; - context.getInstanceInterface().getPhysicalDeviceFeatures2(context.getPhysicalDevice(), &coreFeatures); - if ( coreFeatures.features.textureCompressionETC2 && de::contains(DE_ARRAY_BEGIN(s_requiredSampledImageFilterCubicFormatsETC2), DE_ARRAY_END(s_requiredSampledImageFilterCubicFormatsETC2), format) ) + const auto& coreFeatures = context.getDeviceFeatures(); + if ( coreFeatures.textureCompressionETC2 && de::contains(DE_ARRAY_BEGIN(s_requiredSampledImageFilterCubicFormatsETC2), DE_ARRAY_END(s_requiredSampledImageFilterCubicFormatsETC2), format) ) flags |= VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_EXT; } |