From 9d0d1e529569855f4a0c3a3e109c5be65522c115 Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Sat, 22 Oct 2022 02:32:44 +0800 Subject: [PATCH] st: move function st_visual_have_buffers into st_manager.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As it's only accessed in st_manager.c, there is no need expose it Signed-off-by: Yonggang Luo Reviewed-by: Jesse Natalie Reviewed-by: Marek Olšák Part-of: --- src/gallium/include/frontend/api.h | 9 --------- src/mesa/state_tracker/st_manager.c | 8 ++++++++ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/gallium/include/frontend/api.h b/src/gallium/include/frontend/api.h index 33d8697f452..4cee640c8a7 100644 --- a/src/gallium/include/frontend/api.h +++ b/src/gallium/include/frontend/api.h @@ -578,13 +578,4 @@ struct st_api struct st_framebuffer_iface *stfbi); }; -/** - * Return true if the visual has the specified buffers. - */ -static inline bool -st_visual_have_buffers(const struct st_visual *visual, unsigned mask) -{ - return ((visual->buffer_mask & mask) == mask); -} - #endif /* _API_H_ */ diff --git a/src/mesa/state_tracker/st_manager.c b/src/mesa/state_tracker/st_manager.c index b2abd0351e8..648fbab0911 100644 --- a/src/mesa/state_tracker/st_manager.c +++ b/src/mesa/state_tracker/st_manager.c @@ -290,6 +290,14 @@ st_framebuffer_validate(struct gl_framebuffer *stfb, } } +/** + * Return true if the visual has the specified buffers. + */ +static inline bool +st_visual_have_buffers(const struct st_visual *visual, unsigned mask) +{ + return ((visual->buffer_mask & mask) == mask); +} /** * Update the attachments to validate by looping the existing renderbuffers.