pan/midgard: Move midgard_is_branch_unit to helpers

Signed-off-by: Afonso Bordado <afonsobordado@az8.co>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
Afonso Bordado 2019-12-27 20:36:36 +00:00
parent 5e9106f7af
commit 0e83688f47
2 changed files with 6 additions and 7 deletions

View File

@ -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

View File

@ -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)
{