remap |= (uint64_t)bit << (i++ * 4);
}
- nir_ssa_def *shift = nir_imul(b, compacted, nir_imm_int(b, 4));
+ nir_ssa_def *shift = nir_imul_imm(b, compacted, 4);
/* One of these days, when we have int64 everywhere, this will be
* easier.
nir_ushr(b, nir_imm_int(b, remap), shift);
nir_ssa_def *shifted_high =
nir_ushr(b, nir_imm_int(b, remap >> 32),
- nir_isub(b, shift, nir_imm_int(b, 32)));
+ nir_iadd_imm(b, shift, -32));
shifted = nir_bcsel(b, nir_ilt_imm(b, shift, 32),
shifted_low, shifted_high);
}
- state->view_index = nir_iand(b, shifted, nir_imm_int(b, 0xf));
+ state->view_index = nir_iand_imm(b, shifted, 0xf);
}
} else {
const struct glsl_type *type = glsl_int_type();