nvk: Advertise VK_NV_shader_sm_builtins

Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27154>
This commit is contained in:
Faith Ekstrand
2024-01-18 13:03:48 -06:00
committed by Marge Bot
parent a55b2996ab
commit 5b1afb0482
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -203,6 +203,7 @@ nvk_get_device_extensions(const struct nvk_instance *instance,
.EXT_vertex_input_dynamic_state = true,
.EXT_ycbcr_2plane_444_formats = true,
.EXT_ycbcr_image_arrays = true,
.NV_shader_sm_builtins = true,
};
}
@@ -518,6 +519,9 @@ nvk_get_device_features(const struct nv_device_info *info,
/* VK_EXT_ycbcr_image_arrays */
.ycbcrImageArrays = true,
/* VK_NV_shader_sm_builtins */
.shaderSMBuiltins = true,
/* VK_VALVE_mutable_descriptor_type */
.mutableDescriptorType = true,
};
@@ -817,6 +821,10 @@ nvk_get_device_properties(const struct nvk_instance *instance,
/* VK_KHR_fragment_shader_barycentric */
.triStripVertexOrderIndependentOfProvokingVertex = false,
/* VK_NV_shader_sm_builtins */
.shaderSMCount = (uint32_t)info->tpc_count * info->mp_per_tpc,
.shaderWarpsPerSM = info->max_warps_per_mp,
};
snprintf(properties->deviceName, sizeof(properties->deviceName),
+1
View File
@@ -136,6 +136,7 @@ nvk_physical_device_spirv_options(const struct nvk_physical_device *pdev,
.physical_storage_buffer_address = true,
.runtime_descriptor_array = true,
.shader_clock = true,
.shader_sm_builtins_nv = true,
.shader_viewport_index_layer = true,
.storage_8bit = true,
.storage_16bit = true,