diff options
author | Marek Olšák <[email protected]> | 2019-11-08 20:16:20 -0500 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-11-15 14:34:49 -0500 |
commit | 0714b3d57e7672f4064a7cef486bb7bf6af7c020 (patch) | |
tree | e95ca21832c37fa86570143c8eee69b09d20e959 | |
parent | bc5097a7d94247b251ed7e721b89ca968a00279f (diff) |
radeonsi/nir: remove dead function temps
glxgears has dead temps after lowering color inputs to load intrinsics.
Reviewed-by: Timothy Arceri <[email protected]>
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader_nir.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |