Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
if (var->data.mode != mode)
continue;
- uint64_t loc_mask = 1 << var->data.location;
+ uint64_t loc_mask = ((uint64_t)1) << var->data.location;
if (var->data.patch) {
if (deref_has_indirect(&b, var, intr->variables[0]))
patch_indirects[var->data.location_frac] |= loc_mask;
nir_variable *var = intr->variables[0]->var;
/* Skip indirects */
- uint64_t loc_mask = 1 << var->data.location;
+ uint64_t loc_mask = ((uint64_t)1) << var->data.location;
if (var->data.patch) {
if (patch_indirects[var->data.location_frac] & loc_mask)
continue;