From a31a55d3489d134e4de924513c2aa6d3e54fe412 Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Thu, 23 May 2024 20:55:10 +0200 Subject: [PATCH] panvk: Lower var copies before lowering IOs Variable copy lowering might generate new IOs, so let's make sure those are lowered before the IOs. Signed-off-by: Boris Brezillon Reviewed-by: Mary Guillemard Part-of: --- src/panfrost/vulkan/panvk_vX_shader.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/panfrost/vulkan/panvk_vX_shader.c b/src/panfrost/vulkan/panvk_vX_shader.c index 82306ce00c0..92dd7e36e33 100644 --- a/src/panfrost/vulkan/panvk_vX_shader.c +++ b/src/panfrost/vulkan/panvk_vX_shader.c @@ -376,6 +376,9 @@ panvk_lower_nir(struct panvk_device *dev, nir_shader *nir, NIR_PASS_V(nir, panvk_per_arch(nir_lower_descriptors), dev, set_layout_count, set_layouts, shader); + NIR_PASS_V(nir, nir_split_var_copies); + NIR_PASS_V(nir, nir_lower_var_copies); + NIR_PASS_V(nir, nir_lower_explicit_io, nir_var_mem_ubo, panvk_buffer_ubo_addr_format(rs->uniform_buffers)); NIR_PASS_V(nir, nir_lower_explicit_io, nir_var_mem_ssbo,