Commit 8f3b516f authored by Jason Ekstrand's avatar Jason Ekstrand
Browse files

nir/clone: Copy bit size when cloning registers

Reported-by: default avatarMark Janes <>
Reviewed-by: default avatarEduardo Lima Mitev <>
parent 8e70a58a
......@@ -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);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment