From 0714b3d57e7672f4064a7cef486bb7bf6af7c020 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Fri, 8 Nov 2019 20:16:20 -0500 Subject: [PATCH] radeonsi/nir: remove dead function temps glxgears has dead temps after lowering color inputs to load intrinsics. Reviewed-by: Timothy Arceri --- src/gallium/drivers/radeonsi/si_shader_nir.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/radeonsi/si_shader_nir.c b/src/gallium/drivers/radeonsi/si_shader_nir.c index 463ec0b5421..c11032ba800 100644 --- a/src/gallium/drivers/radeonsi/si_shader_nir.c +++ b/src/gallium/drivers/radeonsi/si_shader_nir.c @@ -1013,6 +1013,7 @@ static void si_lower_nir(struct si_screen *sscreen, struct nir_shader *nir) si_nir_opts(nir); NIR_PASS_V(nir, nir_lower_bool_to_int32); + NIR_PASS_V(nir, nir_remove_dead_variables, nir_var_function_temp); } void si_finalize_nir(struct pipe_screen *screen, void *nirptr, bool optimize) -- 2.30.2