diff options
author | Francisco Jerez <[email protected]> | 2015-06-03 21:24:18 +0300 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2015-06-09 13:56:06 +0300 |
commit | 7624f8410f64a7ce0ba125a2025904c70610c076 (patch) | |
tree | 7ddd735b7c9df5371e220e4a663cecc2ad7a05f5 /src/mesa/drivers/dri/i965/brw_ir_vec4.h | |
parent | 239dfc5410d98f3b31a06652ceff13d9858c1f9b (diff) |
i965: Define consistent interface to enable instruction conditional modifiers.
v2: Use set_ prefix.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_ir_vec4.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_ir_vec4.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_ir_vec4.h b/src/mesa/drivers/dri/i965/brw_ir_vec4.h index b9a5a251914..96d1cfbeb93 100644 --- a/src/mesa/drivers/dri/i965/brw_ir_vec4.h +++ b/src/mesa/drivers/dri/i965/brw_ir_vec4.h @@ -212,6 +212,17 @@ set_predicate(enum brw_predicate pred, vec4_instruction *inst) 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 |