aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-03-11 14:40:01 -0400
committerMarge Bot <[email protected]>2020-03-11 20:28:21 +0000
commite94754a7c47bd59526de72115576519e015f4d76 (patch)
treee615332d32e048a8a8a25cab776c464a1d7f50de /src/panfrost/midgard
parent9b75f410c44053a4fc84715dec473dadedf7aa14 (diff)
pan/bi: Paste over bi_has_arg
While we're at it, cleanup the Midgard one. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4150>
Diffstat (limited to 'src/panfrost/midgard')
-rw-r--r--src/panfrost/midgard/compiler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/panfrost/midgard/compiler.h b/src/panfrost/midgard/compiler.h
index aa0c193d99d..6614439fbfb 100644
--- a/src/panfrost/midgard/compiler.h
+++ b/src/panfrost/midgard/compiler.h
@@ -602,7 +602,7 @@ mir_has_arg(midgard_instruction *ins, unsigned arg)
if (!ins)
return false;
- for (unsigned i = 0; i < ARRAY_SIZE(ins->src); ++i) {
+ mir_foreach_src(ins, i) {
if (ins->src[i] == arg)
return true;
}