v2: Use set_ prefix.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
return set_predicate_inv(pred, false, inst);
}
+/**
+ * Write the result of evaluating the condition given by \p mod to a flag
+ * register.
+ */
+static inline fs_inst *
+set_condmod(enum brw_conditional_mod mod, fs_inst *inst)
+{
+ inst->conditional_mod = mod;
+ return inst;
+}
+
#endif
return set_predicate_inv(pred, false, inst);
}
+/**
+ * Write the result of evaluating the condition given by \p mod to a flag
+ * register.
+ */
+inline vec4_instruction *
+set_condmod(enum brw_conditional_mod mod, vec4_instruction *inst)
+{
+ inst->conditional_mod = mod;
+ return inst;
+}
+
} /* namespace brw */
#endif