From 4226c50b3f8da6bdfd7a63596dbe1cce0bbc08d9 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Mon, 4 Nov 2024 14:02:23 +0200 Subject: [PATCH] anv: avoid early lower of the fp64 code Otherwise this will lead to scratch intrinsics for calls/returns. Signed-off-by: Lionel Landwerlin Acked-by: Nanley Chery Acked-by: Ivan Briano Part-of: --- src/intel/vulkan/anv_pipeline_cache.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/intel/vulkan/anv_pipeline_cache.c b/src/intel/vulkan/anv_pipeline_cache.c index 84c883ce4c7..46eb21d51fa 100644 --- a/src/intel/vulkan/anv_pipeline_cache.c +++ b/src/intel/vulkan/anv_pipeline_cache.c @@ -689,22 +689,6 @@ anv_load_fp64_shader(struct anv_device *device) NIR_PASS_V(nir, nir_lower_variable_initializers, nir_var_function_temp); NIR_PASS_V(nir, nir_lower_returns); NIR_PASS_V(nir, nir_inline_functions); - NIR_PASS_V(nir, nir_opt_deref); - - NIR_PASS_V(nir, nir_lower_vars_to_ssa); - NIR_PASS_V(nir, nir_copy_prop); - NIR_PASS_V(nir, nir_opt_dce); - NIR_PASS_V(nir, nir_opt_cse); - NIR_PASS_V(nir, nir_opt_gcm, true); - - nir_opt_peephole_select_options peephole_select_options = { - .limit = 1, - }; - NIR_PASS_V(nir, nir_opt_peephole_select, &peephole_select_options); - NIR_PASS_V(nir, nir_opt_dce); - - NIR_PASS_V(nir, nir_lower_explicit_io, nir_var_function_temp, - nir_address_format_62bit_generic); anv_device_upload_nir(device, device->internal_cache, nir, sha1);