dri: make DRI_FLUSH public
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30450>
This commit is contained in:
committed by
Marge Bot
parent
18c25edb94
commit
0c4813dd0b
@@ -93,8 +93,8 @@ dri2_buffer(__DRIbuffer * driBufferPriv)
|
||||
* -> loader_dri3_update_drawable_geometry
|
||||
* EGL: wl_egl_window::resize_callback (called outside Mesa)
|
||||
*/
|
||||
static void
|
||||
dri2_invalidate_drawable(__DRIdrawable *dPriv)
|
||||
void
|
||||
dri_invalidate_drawable(__DRIdrawable *dPriv)
|
||||
{
|
||||
struct dri_drawable *drawable = dri_drawable(dPriv);
|
||||
|
||||
@@ -108,7 +108,7 @@ static const __DRI2flushExtension dri2FlushExtension = {
|
||||
.base = { __DRI2_FLUSH, 4 },
|
||||
|
||||
.flush = dri_flush_drawable,
|
||||
.invalidate = dri2_invalidate_drawable,
|
||||
.invalidate = dri_invalidate_drawable,
|
||||
.flush_with_flags = dri_flush,
|
||||
};
|
||||
|
||||
|
||||
@@ -173,4 +173,15 @@ dri_query_renderer_string(__DRIscreen *_screen, int param,
|
||||
PUBLIC int
|
||||
dri_query_renderer_integer(__DRIscreen *_screen, int param,
|
||||
unsigned int *value);
|
||||
|
||||
PUBLIC void
|
||||
dri_flush_drawable(__DRIdrawable *dPriv);
|
||||
PUBLIC void
|
||||
dri_flush(__DRIcontext *cPriv,
|
||||
__DRIdrawable *dPriv,
|
||||
unsigned flags,
|
||||
enum __DRI2throttleReason reason);
|
||||
PUBLIC void
|
||||
dri_invalidate_drawable(__DRIdrawable *dPriv);
|
||||
|
||||
#endif /* _DRI_UTIL_H_ */
|
||||
|
||||
@@ -13,6 +13,9 @@
|
||||
kopper*;
|
||||
dri_query_renderer_string;
|
||||
dri_query_renderer_integer;
|
||||
dri_flush_drawable;
|
||||
dri_flush;
|
||||
dri_invalidate_drawable;
|
||||
dri_loader_get_extensions;
|
||||
@nouveau_drm_screen_create@
|
||||
@radeon_drm_winsys_create@
|
||||
|
||||
Reference in New Issue
Block a user