diff options
author | Samuel Iglesias Gonsálvez <[email protected]> | 2016-03-23 08:04:18 +0100 |
---|---|---|
committer | Samuel Iglesias Gonsálvez <[email protected]> | 2016-04-11 08:27:04 +0200 |
commit | 3663a2397e47da9b766b0c4239a8b74ac77b5d04 (patch) | |
tree | 8de1cc32a2ab24f26518f7d86860986506285d9d /src/compiler/nir/nir_clone.c | |
parent | a5b17ae7455af205a89074d176289affbf68e444 (diff) |
nir: add bit_size info to nir_load_const_instr_create()
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_clone.c')
-rw-r--r-- | src/compiler/nir/nir_clone.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_clone.c b/src/compiler/nir/nir_clone.c index a3d467d5174..e889f19d24e 100644 --- a/src/compiler/nir/nir_clone.c +++ b/src/compiler/nir/nir_clone.c @@ -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)); |