}
#if defined(CTS_USES_VULKAN)
- if ( isExtensionStructSupported(deviceExtensions, RequiredExtension("VK_KHR_fragment_shading_rate")) && physicalDeviceMeshShaderFeaturesEXT.primitiveFragmentShadingRateMeshShader )
+ if ( physicalDeviceMeshShaderFeaturesEXT.primitiveFragmentShadingRateMeshShader )
{
if ( physicalDeviceFragmentShadingRateFeaturesKHR.primitiveFragmentShadingRate == VK_FALSE )
{
vk::VkPhysicalDeviceFragmentShadingRateFeaturesKHR physicalDeviceFragmentShadingRateFeaturesKHR;
deMemset(&physicalDeviceFragmentShadingRateFeaturesKHR, 0, sizeof(physicalDeviceFragmentShadingRateFeaturesKHR));
- if ( isExtensionStructSupported(deviceExtensions, RequiredExtension("VK_KHR_fragment_shading_rate")) )
+ if ( false )
{
physicalDeviceFragmentShadingRateFeaturesKHR.sType = getStructureType<VkPhysicalDeviceFragmentShadingRateFeaturesKHR>();
*nextPtr = &physicalDeviceFragmentShadingRateFeaturesKHR;
}
#if defined(CTS_USES_VULKAN)
- if ( isExtensionStructSupported(deviceExtensions, RequiredExtension("VK_KHR_fragment_shading_rate")) && physicalDeviceMeshShaderFeaturesEXT.primitiveFragmentShadingRateMeshShader )
+ if ( physicalDeviceMeshShaderFeaturesEXT.primitiveFragmentShadingRateMeshShader )
{
if ( physicalDeviceFragmentShadingRateFeaturesKHR.primitiveFragmentShadingRate == VK_FALSE )
{
''])
reqs = v[0][1:]
if len(reqs) > 0 :
- cond = 'if ( '
+ cond = ''
for i, req in enumerate(reqs) :
+ if len(cond) > 0:
+ cond += ' || '
if (req.startswith("ApiVersion")):
cond = cond + 'context.contextSupports(vk::' + req + ')'
- else:
+ elif (req.startswith("VK_")):
cond = cond + 'isExtensionStructSupported(deviceExtensions, RequiredExtension("' + req + '"))'
- if i+1 < len(reqs) :
- cond = cond + ' || '
- cond = cond + ' )'
+ if len(cond) == 0:
+ cond = 'false'
+ cond = 'if ( ' + cond + ' )'
stream.append('\t' + cond)
stream.extend(['\t{',
'\t\t' + v[0][0] + '.sType = getStructureType<' + k + '>();',
],
"VkPhysicalDeviceFragmentShadingRateFeaturesKHR":
[
- { "features": ["primitiveFragmentShadingRate"], "requirements": ["VK_KHR_fragment_shading_rate", "physicalDeviceMeshShaderFeaturesEXT.primitiveFragmentShadingRateMeshShader"], "mandatory_variant": ["vulkan"] }
+ { "features": ["primitiveFragmentShadingRate"], "requirements": ["physicalDeviceMeshShaderFeaturesEXT.primitiveFragmentShadingRateMeshShader"], "mandatory_variant": ["vulkan"] }
]
}
}