aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard
diff options
context:
space:
mode:
authorAfonso Bordado <[email protected]>2019-12-27 20:36:36 +0000
committerAfonso Bordado <[email protected]>2019-12-31 20:01:12 +0000
commit0e83688f477a2e98f94f342cd9a637a9f140a69d (patch)
treef9ddb2ff1bfa83222d19c12dfb503e2750754a0f /src/panfrost/midgard
parent5e9106f7af50e3652fb3bbdba53fc069c7d8eb5e (diff)
pan/midgard: Move midgard_is_branch_unit to helpers
Signed-off-by: Afonso Bordado <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/midgard')
-rw-r--r--src/panfrost/midgard/helpers.h6
-rw-r--r--src/panfrost/midgard/midgard_compile.c7
2 files changed, 6 insertions, 7 deletions
diff --git a/src/panfrost/midgard/helpers.h b/src/panfrost/midgard/helpers.h
index 2511a8140c2..c41b6ed23c5 100644
--- a/src/panfrost/midgard/helpers.h
+++ b/src/panfrost/midgard/helpers.h
@@ -337,4 +337,10 @@ midgard_ldst_reg(unsigned reg, unsigned component)
return packed;
}
+static inline bool
+midgard_is_branch_unit(unsigned unit)
+{
+ return (unit == ALU_ENAB_BRANCH) || (unit == ALU_ENAB_BR_COMPACT);
+}
+
#endif
diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c
index 9afe96f0cfc..b57291dad05 100644
--- a/src/panfrost/midgard/midgard_compile.c
+++ b/src/panfrost/midgard/midgard_compile.c
@@ -69,13 +69,6 @@ int midgard_debug = 0;
do { if (midgard_debug & MIDGARD_DBG_MSGS) \
fprintf(stderr, "%s:%d: "fmt, \
__FUNCTION__, __LINE__, ##__VA_ARGS__); } while (0)
-
-static bool
-midgard_is_branch_unit(unsigned unit)
-{
- return (unit == ALU_ENAB_BRANCH) || (unit == ALU_ENAB_BR_COMPACT);
-}
-
static midgard_block *
create_empty_block(compiler_context *ctx)
{