i965/nir: Do a final copy lowering pass before lowering locals to regs
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 14 Jan 2015 23:25:52 +0000 (15:25 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 15 Jan 2015 15:20:24 +0000 (07:20 -0800)
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp

index 218cd5ce172ad0096a4396ee28fdc0592d1b1640..e8f398a7138a8510e507263764eb812745fd5483 100644 (file)
@@ -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);