From: Afonso Bordado Date: Fri, 27 Dec 2019 20:36:36 +0000 (+0000) Subject: pan/midgard: Move midgard_is_branch_unit to helpers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0e83688f477a2e98f94f342cd9a637a9f140a69d;p=mesa.git pan/midgard: Move midgard_is_branch_unit to helpers Signed-off-by: Afonso Bordado Reviewed-by: Alyssa Rosenzweig --- 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) {