mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
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:
parent
486381c489
commit
0dd58bd115
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue