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.