/* Use this in conjunction with `type` */
unsigned op;
+ /* This refers to midgard_outmod_float or midgard_outmod_int.
+ * In case of a ALU op, use midgard_is_integer_out_op() to know which
+ * one is used.
+ * If it's a texture op, it's always midgard_outmod_float. */
+ unsigned outmod;
+
union {
midgard_load_store_word load_store;
midgard_vector_alu alu;
.dest = dest,
.dest_type = nir_type_uint32,
.op = midgard_alu_op_imov,
- .alu = {
- .outmod = midgard_outmod_int_wrap
- },
+ .outmod = midgard_outmod_int_wrap
};
return ins;
.dest = ~0,
.src = { ~0, ~0, ~0, ~0 },
.swizzle = SWIZZLE_IDENTITY_4,
+ .op = is_store ? midgard_op_st_int4 : midgard_op_ld_int4,
.load_store = {
- .op = is_store ? midgard_op_st_int4 : midgard_op_ld_int4,
-
/* For register spilling - to thread local storage */
.arg_1 = 0xEA,
.arg_2 = 0x1E,