panfrost: avoid warning about unused function

This function is only used if PAN_ARCH >= 5

Fixes a clang warning about unused static inlined functions.

Reviewed-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18800>
This commit is contained in:
Thomas H.P. Andersen 2022-01-08 20:37:56 +01:00 committed by Marge Bot
parent 486381c489
commit 0dd58bd115

View file

@ -74,6 +74,7 @@ mali_sampling_mode(const struct pan_image_view *view)
return MALI_MSAA_SINGLE;
}
#if PAN_ARCH >= 5
static inline enum mali_sample_pattern
pan_sample_pattern(unsigned samples)
{
@ -85,6 +86,7 @@ pan_sample_pattern(unsigned samples)
default: unreachable("Unsupported sample count");
}
}
#endif
int
GENX(pan_select_crc_rt)(const struct pan_fb_info *fb, unsigned tile_size)