[Mesa-dev] [PATCH 01/29] nir/from_ssa: adapt to different bit sizes
Samuel Iglesias Gonsálvez
siglesias at igalia.com
Mon Mar 21 12:05:40 UTC 2016
From: Connor Abbott <connor.w.abbott at intel.com>
---
src/compiler/nir/nir_from_ssa.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/compiler/nir/nir_from_ssa.c b/src/compiler/nir/nir_from_ssa.c
index 82317c2..7bbc2c0 100644
--- a/src/compiler/nir/nir_from_ssa.c
+++ b/src/compiler/nir/nir_from_ssa.c
@@ -474,6 +474,7 @@ rewrite_ssa_def(nir_ssa_def *def, void *void_state)
node->set->reg = nir_local_reg_create(state->impl);
node->set->reg->name = def->name;
node->set->reg->num_components = def->num_components;
+ node->set->reg->bit_size = def->bit_size;
node->set->reg->num_array_elems = 0;
}
@@ -491,6 +492,7 @@ rewrite_ssa_def(nir_ssa_def *def, void *void_state)
reg = nir_local_reg_create(state->impl);
reg->name = def->name;
reg->num_components = def->num_components;
+ reg->bit_size = def->bit_size;
reg->num_array_elems = 0;
}
--
2.5.0
More information about the mesa-dev
mailing list