summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-04-11 14:46:14 -0700
committerJason Ekstrand <[email protected]>2016-04-12 16:41:58 -0700
commit8f3b516f2e9e3066792fe244351427f8775ce214 (patch)
tree4de297c951b2db68eea8585e79582e87e8d8370e /src
parent8e70a58af394a8699aecdaad6e406a9183ce2090 (diff)
nir/clone: Copy bit size when cloning registers
Reported-by: Mark Janes <[email protected]> Reviewed-by: Eduardo Lima Mitev <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/compiler/nir/nir_clone.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_clone.c b/src/compiler/nir/nir_clone.c
index e889f19d24e..e231387c889 100644
--- a/src/compiler/nir/nir_clone.c
+++ b/src/compiler/nir/nir_clone.c
@@ -179,6 +179,7 @@ clone_register(clone_state *state, const nir_register *reg)
add_remap(state, nreg, reg);
nreg->num_components = reg->num_components;
+ nreg->bit_size = reg->bit_size;
nreg->num_array_elems = reg->num_array_elems;
nreg->index = reg->index;
nreg->name = ralloc_strdup(nreg, reg->name);