[Mesa-dev] [PATCH 04/29] nir/lower_vec: adapt to different bit sizes
Samuel Iglesias Gonsálvez
siglesias at igalia.com
Mon Mar 21 12:05:43 UTC 2016
From: Connor Abbott <cwabbott0 at gmail.com>
---
src/compiler/nir/nir_lower_vec_to_movs.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/compiler/nir/nir_lower_vec_to_movs.c b/src/compiler/nir/nir_lower_vec_to_movs.c
index f51cede..9e40b84 100644
--- a/src/compiler/nir/nir_lower_vec_to_movs.c
+++ b/src/compiler/nir/nir_lower_vec_to_movs.c
@@ -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));
--
2.5.0
More information about the mesa-dev
mailing list