intel/nir: Add a common nir comparison -> cmod helper

We already had one in the vec4 code, we just had move it.

Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
Jason Ekstrand
2019-08-02 15:19:16 -05:00
parent 2fd30e3722
commit c02c3ff612
4 changed files with 47 additions and 82 deletions

View File

@@ -146,6 +146,7 @@ void brw_nir_apply_key(nir_shader *nir,
unsigned max_subgroup_size,
bool is_scalar);
enum brw_conditional_mod brw_cmod_for_nir_comparison(nir_op op);
enum brw_reg_type brw_type_for_nir_type(const struct gen_device_info *devinfo,
nir_alu_type type);