mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
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:
parent
5e85165a7b
commit
9d0d1e5295
2 changed files with 8 additions and 9 deletions
|
|
@ -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_ */
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue