diff --git a/src/gallium/frontends/dri/dri2.c b/src/gallium/frontends/dri/dri2.c index 409b73ff0a5..49f8da088fa 100644 --- a/src/gallium/frontends/dri/dri2.c +++ b/src/gallium/frontends/dri/dri2.c @@ -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, }; diff --git a/src/gallium/frontends/dri/dri_util.h b/src/gallium/frontends/dri/dri_util.h index b7d8cb70b38..3573d4cebff 100644 --- a/src/gallium/frontends/dri/dri_util.h +++ b/src/gallium/frontends/dri/dri_util.h @@ -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_ */ diff --git a/src/gallium/targets/dri/dri.sym.in b/src/gallium/targets/dri/dri.sym.in index 574bc824368..71b85d786fd 100644 --- a/src/gallium/targets/dri/dri.sym.in +++ b/src/gallium/targets/dri/dri.sym.in @@ -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@