From: Jason Ekstrand Date: Wed, 14 Jan 2015 23:25:52 +0000 (-0800) Subject: i965/nir: Do a final copy lowering pass before lowering locals to regs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c56adc68e2e75276785fd933b47621c87f9fd3ee;p=mesa.git i965/nir: Do a final copy lowering pass before lowering locals to regs Reviewed-by: Connor Abbott --- diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index 218cd5ce172..e8f398a7138 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp @@ -60,6 +60,9 @@ fs_visitor::emit_nir_code() } while (progress); /* Lower a bunch of stuff */ + nir_lower_var_copies(nir); + nir_validate_shader(nir); + nir_lower_io(nir); nir_validate_shader(nir);