nir: add bit_size info to nir_load_const_instr_create()
[mesa.git] / src / compiler / nir / nir_clone.c
index a3d467d51741b635ba84cb65e047d9e83331e784..e889f19d24e5b8aa3a10cd3a16edb2e3abddcc40 100644 (file)
@@ -359,7 +359,8 @@ static nir_load_const_instr *
 clone_load_const(clone_state *state, const nir_load_const_instr *lc)
 {
    nir_load_const_instr *nlc =
-      nir_load_const_instr_create(state->ns, lc->def.num_components);
+      nir_load_const_instr_create(state->ns, lc->def.num_components,
+                                  lc->def.bit_size);
 
    memcpy(&nlc->value, &lc->value, sizeof(nlc->value));