diff --git a/src/gallium/frontends/dri/dri2.c b/src/gallium/frontends/dri/dri2.c index 9cf2d815e15..5f4b2482243 100644 --- a/src/gallium/frontends/dri/dri2.c +++ b/src/gallium/frontends/dri/dri2.c @@ -2029,8 +2029,8 @@ static const __DRI2interopExtension dri2InteropExtension = { /** * \brief the DRI2bufferDamageExtension set_damage_region method */ -static void -dri2_set_damage_region(__DRIdrawable *dPriv, unsigned int nrects, int *rects) +void +dri_set_damage_region(__DRIdrawable *dPriv, unsigned int nrects, int *rects) { struct dri_drawable *drawable = dri_drawable(dPriv); struct pipe_box *boxes = NULL; @@ -2166,7 +2166,7 @@ dri2_init_screen_extensions(struct dri_screen *screen, if (!is_kms_screen && pscreen->set_damage_region) { screen->buffer_damage_extension = dri2BufferDamageExtensionTempl; - screen->buffer_damage_extension.set_damage_region = dri2_set_damage_region; + screen->buffer_damage_extension.set_damage_region = dri_set_damage_region; *nExt++ = &screen->buffer_damage_extension.base; } diff --git a/src/gallium/frontends/dri/dri_util.h b/src/gallium/frontends/dri/dri_util.h index affecb6cd03..d3c800f1d2c 100644 --- a/src/gallium/frontends/dri/dri_util.h +++ b/src/gallium/frontends/dri/dri_util.h @@ -305,4 +305,7 @@ PUBLIC bool dri2_query_compression_modifiers(__DRIscreen *_screen, uint32_t fourcc, enum __DRIFixedRateCompression rate, int max, uint64_t *modifiers, int *count); + +PUBLIC void +dri_set_damage_region(__DRIdrawable *dPriv, unsigned int nrects, int *rects); #endif /* _DRI_UTIL_H_ */ diff --git a/src/gallium/targets/dri/dri.sym.in b/src/gallium/targets/dri/dri.sym.in index d8dbeb4a17c..be94e492c8c 100644 --- a/src/gallium/targets/dri/dri.sym.in +++ b/src/gallium/targets/dri/dri.sym.in @@ -51,6 +51,7 @@ dri2_query_dma_buf_format_modifier_attribs; dri_query_compatible_render_only_device_fd; driSWRastQueryBufferAge; + dri_set_damage_region; @nouveau_drm_screen_create@ @radeon_drm_winsys_create@ @amdgpu_winsys_create@