/* TODO: promote unaligned access via swizzle? */
return (ins->type == TAG_LOAD_STORE_4) &&
- (OP_IS_UBO_READ(ins->load_store.op)) &&
+ (OP_IS_UBO_READ(ins->op)) &&
!(ins->constants.u32[0] & 0xF) &&
!(ins->load_store.arg_1) &&
(ins->load_store.arg_2 == 0x1E) &&
mov.dest_type = nir_type_uint | type_size;
mov.src_types[0] = mov.dest_type;
- if (type_size == 64)
- mov.alu.reg_mode = midgard_reg_mode_64;
-
uint16_t rounded = mir_round_bytemask_up(mir_bytemask(ins), type_size);
mir_set_bytemask(&mov, rounded);
mir_insert_instruction_before(ctx, ins, mov);