Some multisample tests attempted to use sampleRateShading without
checking for support.
Affects:
dEQP-VK.pipeline.multisample.mixed_count.*
dEQP-VK.pipeline.multisample.variable_rate.*
dEQP-VK.pipeline.multisample_shader_builtin.write_sample_mask.*
Components: Vulkan
VK-GL-CTS issue: 2532
Change-Id: Ieaeddc51183b005a78fd3cc847b767a8a5683b44
const auto& vki = context.getInstanceInterface();
const auto physicalDevice = context.getPhysicalDevice();
+ // Check if sampleRateShading is supported.
+ if(!vk::getPhysicalDeviceFeatures(vki, physicalDevice).sampleRateShading)
+ TCU_THROW(NotSupportedError, "Sample rate shading is not supported");
+
// Check the specific image format.
const auto properties = vk::getPhysicalDeviceFormatProperties(vki, physicalDevice, kImageFormat);
if (!(properties.optimalTilingFeatures & kFeatureFlags))
TCU_THROW(NotSupportedError, "Variable multisample rate not supported");
}
+ // Check if sampleRateShading is supported.
+ if(!vk::getPhysicalDeviceFeatures(vki, physicalDevice).sampleRateShading)
+ TCU_THROW(NotSupportedError, "Sample rate shading is not supported");
+
// Make sure all subpass sample counts are supported.
const auto properties = vk::getPhysicalDeviceProperties(vki, physicalDevice);
const auto& supportedCounts = properties.limits.framebufferNoAttachmentsSampleCounts;