projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pan/bi: Paste over bi_has_arg
[mesa.git]
/
src
/
panfrost
/
bifrost
/
bir.c
diff --git
a/src/panfrost/bifrost/bir.c
b/src/panfrost/bifrost/bir.c
index 0f1efcb3388d10ca508be4d9571a454b6aab44ef..5fe0ae484091ac86cf3dd887358e7f509d2ab8ce 100644
(file)
--- a/
src/panfrost/bifrost/bir.c
+++ b/
src/panfrost/bifrost/bir.c
@@
-60,3
+60,17
@@
bi_is_src_swizzled(bi_instruction *ins, unsigned s)
return classy && small && first;
}
+
+bool
+bi_has_arg(bi_instruction *ins, unsigned arg)
+{
+ if (!ins)
+ return false;
+
+ bi_foreach_src(ins, s) {
+ if (ins->src[s] == arg)
+ return true;
+ }
+
+ return false;
+}