diff options
author | Jason Ekstrand <[email protected]> | 2019-08-02 15:19:16 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2019-08-03 00:35:48 +0000 |
commit | c02c3ff6121c5f2c8045900c6b83746344f56b32 (patch) | |
tree | 2d23bad69b429bfe91266b13ce5f19a116bf63c7 /src/intel/compiler/brw_nir.h | |
parent | 2fd30e37220484f44b1cfb1ee9afbe6c8a0b43f0 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_nir.h')
-rw-r--r-- | src/intel/compiler/brw_nir.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_nir.h b/src/intel/compiler/brw_nir.h index d8af2e66b3e..354d819d258 100644 --- a/src/intel/compiler/brw_nir.h +++ b/src/intel/compiler/brw_nir.h @@ -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); |