projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79b8e3c
)
intel/mi: Add a gen_mi_ior() to go with gen_mi_iand()
author
Kenneth Graunke
<kenneth@whitecape.org>
Wed, 10 Jul 2019 19:05:23 +0000
(12:05 -0700)
committer
Kenneth Graunke
<kenneth@whitecape.org>
Thu, 25 Jul 2019 18:42:55 +0000
(18:42 +0000)
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/intel/common/gen_mi_builder.h
patch
|
blob
|
history
diff --git
a/src/intel/common/gen_mi_builder.h
b/src/intel/common/gen_mi_builder.h
index 500893559c305fc6f08d4aff9359be5e2e444655..90ac795f48d36cbca7c91ad5a9f64f2b97e96290 100644
(file)
--- a/
src/intel/common/gen_mi_builder.h
+++ b/
src/intel/common/gen_mi_builder.h
@@
-644,6
+644,14
@@
gen_mi_iand(struct gen_mi_builder *b,
MI_ALU_STORE, MI_ALU_ACCU);
}
+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)