nvk: Advertise VK_KHR_maintenance5

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9616
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27795>
This commit is contained in:
Faith Ekstrand
2024-02-25 13:24:43 -06:00
committed by Marge Bot
parent 509fdf4fe4
commit 8ab337047c
2 changed files with 13 additions and 1 deletions

View File

@@ -524,7 +524,7 @@ Khronos extensions that are not part of any Vulkan version:
VK_KHR_index_type_uint8 DONE (anv, nvk, radv)
VK_KHR_line_rasterization DONE (anv, nvk, radv)
VK_KHR_load_store_op_none DONE (anv, nvk, radv)
VK_KHR_maintenance5 DONE (anv, lvp, radv, tu)
VK_KHR_maintenance5 DONE (anv, lvp, nvk, radv, tu)
VK_KHR_maintenance6 DONE (anv, lvp)
VK_KHR_performance_query DONE (anv, radv/gfx10.3+, tu, v3dv)
VK_KHR_pipeline_executable_properties DONE (anv, nvk, hasvk, radv, tu, v3dv)

View File

@@ -113,6 +113,7 @@ nvk_get_device_extensions(const struct nvk_instance *instance,
.KHR_maintenance2 = true,
.KHR_maintenance3 = true,
.KHR_maintenance4 = true,
.KHR_maintenance5 = true,
.KHR_map_memory2 = true,
.KHR_multiview = true,
.KHR_pipeline_executable_properties = true,
@@ -360,6 +361,9 @@ nvk_get_device_features(const struct nv_device_info *info,
.fragmentShaderBarycentric = info->cls_eng3d >= TURING_A &&
(nvk_nak_stages(info) & VK_SHADER_STAGE_FRAGMENT_BIT) != 0,
/* VK_KHR_maintenance5 */
.maintenance5 = true,
/* VK_KHR_pipeline_executable_properties */
.pipelineExecutableInfo = true,
@@ -804,6 +808,14 @@ nvk_get_device_properties(const struct nvk_instance *instance,
/* VK_KHR_line_rasterization */
.lineSubPixelPrecisionBits = 8,
/* VK_KHR_maintenance5 */
.earlyFragmentMultisampleCoverageAfterSampleCounting = true,
.earlyFragmentSampleMaskTestBeforeSampleCounting = true,
.depthStencilSwizzleOneSupport = true,
.polygonModePointSize = true,
.nonStrictSinglePixelWideLinesUseParallelogram = false,
.nonStrictWideLinesUseParallelogram = false,
/* VK_EXT_map_memory_placed */
.minPlacedMemoryMapAlignment = os_page_size,