vc4: Fix build from recent NIR cleanups.
authorEric Anholt <eric@anholt.net>
Mon, 14 Sep 2015 15:21:07 +0000 (11:21 -0400)
committerEric Anholt <eric@anholt.net>
Mon, 14 Sep 2015 15:21:07 +0000 (11:21 -0400)
src/gallium/drivers/vc4/vc4_nir_lower_io.c

index b632370cbb2d17ec0e338e8bd2cdefdd1d8bb1c3..c401415fda7efca0410815b8e48cacca6a28b263 100644 (file)
@@ -47,8 +47,7 @@ replace_intrinsic_with_vec4(nir_builder *b, nir_intrinsic_instr *intr,
         /* Replace the old intrinsic with a reference to our reconstructed
          * vec4.
          */
-        nir_ssa_def_rewrite_uses(&intr->dest.ssa, nir_src_for_ssa(vec),
-                                 ralloc_parent(b->impl));
+        nir_ssa_def_rewrite_uses(&intr->dest.ssa, nir_src_for_ssa(vec));
         nir_instr_remove(&intr->instr);
 }