nir/lower_vec: adapt to different bit sizes
authorConnor Abbott <cwabbott0@gmail.com>
Mon, 2 Nov 2015 23:33:46 +0000 (18:33 -0500)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Mon, 11 Apr 2016 06:27:04 +0000 (08:27 +0200)
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_lower_vec_to_movs.c

index f51cede3920c72d651fea849610ee2ae51a5708d..9e40b84e6e39b55d21f205b227da363b1d711c40 100644 (file)
@@ -240,6 +240,7 @@ lower_vec_to_movs_block(nir_block *block, void *void_state)
          /* Since we insert multiple MOVs, we have a register destination. */
          nir_register *reg = nir_local_reg_create(impl);
          reg->num_components = vec->dest.dest.ssa.num_components;
+         reg->bit_size = vec->dest.dest.ssa.bit_size;
 
          nir_ssa_def_rewrite_uses(&vec->dest.dest.ssa, nir_src_for_reg(reg));