nir: add bit_size info to nir_load_const_instr_create()

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Samuel Iglesias Gonsálvez
2016-03-23 08:04:18 +01:00
parent a5b17ae745
commit 3663a2397e
10 changed files with 21 additions and 16 deletions

View File

@@ -92,7 +92,7 @@ static inline nir_ssa_def *
nir_build_imm(nir_builder *build, unsigned num_components, nir_const_value value)
{
nir_load_const_instr *load_const =
nir_load_const_instr_create(build->shader, num_components);
nir_load_const_instr_create(build->shader, num_components, 32);
if (!load_const)
return NULL;