st: move function st_visual_have_buffers into st_manager.c

As it's only accessed in st_manager.c, there is no need expose it

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19197>
This commit is contained in:
Yonggang Luo 2022-10-22 02:32:44 +08:00 committed by Marge Bot
parent 5e85165a7b
commit 9d0d1e5295
2 changed files with 8 additions and 9 deletions

View file

@ -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_ */

View file

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