if (mir_nontrivial_outmod(ins)) continue;
/* Shortened arguments (bias for textures, extra load/store
- * arguments, etc.) do not get a swizzlw, only a start
- * component and even that is restricted. */
+ * arguments, etc.) do not get a swizzle, only a start
+ * component and even that is restricted. Fragment writeout
+ * doesn't even get that much */
bool skip = false;
mir_foreach_instr_global(ctx, q) {
bool is_tex = q->type == TAG_TEXTURE_4;
bool is_ldst = q->type == TAG_LOAD_STORE_4;
+ bool is_writeout = q->compact_branch && q->writeout;
- if (!(is_tex || is_ldst)) continue;
+ if (!(is_tex || is_ldst || is_writeout)) continue;
/* For textures, we get one real swizzle. For stores,
* we also get one. For loads, we get none. */