dzn: Use vk_pipeline_shader_stage_to_nir()

Dozen is the last user so we can delete it now.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30876>
This commit is contained in:
Faith Ekstrand
2024-08-26 17:10:01 -05:00
committed by Marge Bot
parent 4365d0d769
commit faf27a5989
3 changed files with 2 additions and 36 deletions
+2 -4
View File
@@ -238,13 +238,11 @@ dzn_pipeline_get_nir_shader(struct dzn_device *device,
struct dzn_physical_device *pdev =
container_of(device->vk.physical, struct dzn_physical_device, vk);
VK_FROM_HANDLE(vk_shader_module, module, stage_info->module);
const struct spirv_to_nir_options *spirv_opts = dxil_spirv_nir_get_spirv_options();
VkResult result =
vk_shader_module_to_nir(&device->vk, module, stage,
stage_info->pName, stage_info->pSpecializationInfo,
spirv_opts, options->nir_opts, NULL, nir);
vk_pipeline_shader_stage_to_nir(&device->vk, stage_info,
spirv_opts, options->nir_opts, NULL, nir);
if (result != VK_SUCCESS)
return result;