diff --git a/.pick_status.json b/.pick_status.json index c75b0bcb559..27afda58b4e 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -1723,7 +1723,7 @@ "description": "radv: Call nir_lower_array_deref_of_vec in radv_lower_io_to_scalar_early.", "nominated": true, "nomination_type": 0, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": null }, diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 9758c79084e..81d4df31eb1 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -2427,6 +2427,10 @@ radv_lower_io_to_scalar_early(nir_shader *nir, nir_variable_mode mask) { bool progress = false; + NIR_PASS(progress, nir, nir_lower_array_deref_of_vec, mask, + nir_lower_direct_array_deref_of_vec_load | nir_lower_indirect_array_deref_of_vec_load | + nir_lower_direct_array_deref_of_vec_store | + nir_lower_indirect_array_deref_of_vec_store); NIR_PASS(progress, nir, nir_lower_io_to_scalar_early, mask); if (progress) { /* Optimize the new vector code and then remove dead vars */