From 0f053f0f07cb28a50faa6732430f08e8ba368900 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 21 Sep 2022 12:19:24 -0400 Subject: [PATCH] zink: always run optimize_nir after lower_64bit_vars it's otherwise possible (and likely) that optimizations won't happen since there's no shader key data active Fixes: 5b2f850425e ("zink: rewrite 64bit shader i/o as 32bit") SoroushIMG Part-of: --- src/gallium/drivers/zink/zink_compiler.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/zink/zink_compiler.c b/src/gallium/drivers/zink/zink_compiler.c index f808f96..1032e74 100644 --- a/src/gallium/drivers/zink/zink_compiler.c +++ b/src/gallium/drivers/zink/zink_compiler.c @@ -1874,6 +1874,7 @@ lower_64bit_vars(nir_shader *shader) if (progress) { nir_lower_alu_to_scalar(shader, filter_64_bit_instr, NULL); nir_lower_phis_to_scalar(shader, false); + optimize_nir(shader, NULL); } return progress; } -- 2.7.4