From c56adc68e2e75276785fd933b47621c87f9fd3ee Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 14 Jan 2015 15:25:52 -0800 Subject: [PATCH] i965/nir: Do a final copy lowering pass before lowering locals to regs Reviewed-by: Connor Abbott --- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.30.2