pan/mdg: Add missing static inline annotation
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Tue, 1 Aug 2023 14:40:32 +0000 (10:40 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 1 Aug 2023 23:18:29 +0000 (23:18 +0000)
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Italo Nicola <italonicola@collabora.com>
Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24428>

src/panfrost/midgard/compiler.h

index 1a362bd..fbb52e5 100644 (file)
@@ -459,7 +459,7 @@ make_compiler_temp_reg(compiler_context *ctx)
    return ((ctx->func->impl->ssa_alloc + ctx->temp_alloc++) << 1) | PAN_IS_REG;
 }
 
-static bool
+static inline bool
 mir_is_ssa(unsigned index)
 {
    return (index < SSA_FIXED_MINIMUM) && !(index & PAN_IS_REG);