diff options
author | Kenneth Graunke <[email protected]> | 2019-07-10 12:05:23 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-07-25 18:42:55 +0000 |
commit | 4e16b838ba890837471f63ae9622043848afb4f2 (patch) | |
tree | 27aef7d33679e45f486a0083375f1235deac1445 /src/intel | |
parent | 79b8e3c260003a7ae4089a03d69aeb0ad50c8c0e (diff) |
intel/mi: Add a gen_mi_ior() to go with gen_mi_iand()
Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/common/gen_mi_builder.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/intel/common/gen_mi_builder.h b/src/intel/common/gen_mi_builder.h index 500893559c3..90ac795f48d 100644 --- a/src/intel/common/gen_mi_builder.h +++ b/src/intel/common/gen_mi_builder.h @@ -645,6 +645,14 @@ gen_mi_iand(struct gen_mi_builder *b, } static inline struct gen_mi_value +gen_mi_ior(struct gen_mi_builder *b, + struct gen_mi_value src0, struct gen_mi_value src1) +{ + return gen_mi_math_binop(b, MI_ALU_OR, src0, src1, + MI_ALU_STORE, MI_ALU_ACCU); +} + +static inline struct gen_mi_value gen_mi_imul_imm(struct gen_mi_builder *b, struct gen_mi_value src, uint32_t N) { |