summaryrefslogtreecommitdiffstats
path: root/src/intel/compiler/brw_nir.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-08-20 23:10:50 -0500
committerJason Ekstrand <[email protected]>2019-08-21 17:19:55 +0000
commit021fa28163a1a8a3bda83a615d20930d2b35c651 (patch)
treee3682c898282e83587dd4fbc9867f5e1043a840a /src/intel/compiler/brw_nir.h
parent951cf94521a710fa2fa70329ff77934ada45bb70 (diff)
intel/nir: Add a helper for getting BRW_AOP from an intrinsic
So many duplicated switch statements.... Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_nir.h')
-rw-r--r--src/intel/compiler/brw_nir.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_nir.h b/src/intel/compiler/brw_nir.h
index 354d819d258..cccd9927273 100644
--- a/src/intel/compiler/brw_nir.h
+++ b/src/intel/compiler/brw_nir.h
@@ -147,6 +147,7 @@ void brw_nir_apply_key(nir_shader *nir,
bool is_scalar);
enum brw_conditional_mod brw_cmod_for_nir_comparison(nir_op op);
+uint32_t brw_aop_for_nir_intrinsic(const nir_intrinsic_instr *atomic);
enum brw_reg_type brw_type_for_nir_type(const struct gen_device_info *devinfo,
nir_alu_type type);