radv: advertise VK_KHR_maintenance5

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24392>
This commit is contained in:
Samuel Pitoiset 2023-05-01 17:05:57 +02:00 committed by Marge Bot
parent 54caa8d346
commit ba49f2bef1
2 changed files with 15 additions and 0 deletions

View File

@ -6,3 +6,4 @@ New drivers
New features
------------
VK_EXT_pipeline_robustness on ANV
VK_KHR_maintenance5 on RADV

View File

@ -412,6 +412,7 @@ radv_physical_device_get_supported_extensions(const struct radv_physical_device
.KHR_maintenance2 = true,
.KHR_maintenance3 = true,
.KHR_maintenance4 = true,
.KHR_maintenance5 = true,
.KHR_map_memory2 = true,
.KHR_multiview = true,
.KHR_performance_query = radv_perf_query_supported(device),
@ -1028,6 +1029,9 @@ radv_physical_device_get_features(const struct radv_physical_device *pdevice, st
/* VK_EXT_pipeline_robustness */
.pipelineRobustness = true,
/* VK_KHR_maintenance5 */
.maintenance5 = true,
};
}
@ -1837,6 +1841,16 @@ radv_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice, VkPhysicalDev
properties->defaultRobustnessImages = VK_PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_ROBUST_IMAGE_ACCESS_2_EXT;
break;
}
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_5_PROPERTIES_KHR: {
VkPhysicalDeviceMaintenance5PropertiesKHR *properties = (VkPhysicalDeviceMaintenance5PropertiesKHR *)ext;
properties->earlyFragmentMultisampleCoverageAfterSampleCounting = false;
properties->earlyFragmentSampleMaskTestBeforeSampleCounting = false;
properties->depthStencilSwizzleOneSupport = false;
properties->polygonModePointSize = true;
properties->nonStrictSinglePixelWideLinesUseParallelogram = false;
properties->nonStrictWideLinesUseParallelogram = false;
break;
}
default:
break;
}