From: Marek Olšák Date: Sat, 9 Nov 2019 01:16:20 +0000 (-0500) Subject: radeonsi/nir: remove dead function temps X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0714b3d57e7672f4064a7cef486bb7bf6af7c020;p=mesa.git radeonsi/nir: remove dead function temps glxgears has dead temps after lowering color inputs to load intrinsics. Reviewed-by: Timothy Arceri --- 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)