mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
dri: declare DRI_KOPPER as PUBLIC
Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30400>
This commit is contained in:
parent
38529171d6
commit
2157108e11
4 changed files with 23 additions and 7 deletions
|
|
@ -144,4 +144,19 @@ PUBLIC void
|
|||
driDestroyContext(__DRIcontext *pcp);
|
||||
PUBLIC int driBindContext(__DRIcontext *pcp, __DRIdrawable *pdp, __DRIdrawable *prp);
|
||||
PUBLIC int driUnbindContext(__DRIcontext *pcp);
|
||||
|
||||
|
||||
PUBLIC int64_t
|
||||
kopperSwapBuffers(__DRIdrawable *dPriv, uint32_t flush_flags);
|
||||
PUBLIC int64_t
|
||||
kopperSwapBuffersWithDamage(__DRIdrawable *dPriv, uint32_t flush_flags, int nrects, const int *rects);
|
||||
PUBLIC __DRIdrawable *
|
||||
kopperCreateNewDrawable(__DRIscreen *psp,
|
||||
const __DRIconfig *config,
|
||||
void *data,
|
||||
__DRIkopperDrawableInfo *info);
|
||||
PUBLIC void
|
||||
kopperSetSwapInterval(__DRIdrawable *dPriv, int interval);
|
||||
PUBLIC int
|
||||
kopperQueryBufferAge(__DRIdrawable *dPriv);
|
||||
#endif /* _DRI_UTIL_H_ */
|
||||
|
|
|
|||
|
|
@ -796,7 +796,7 @@ kopper_create_drawable(struct dri_screen *screen, const struct gl_config *visual
|
|||
return drawable;
|
||||
}
|
||||
|
||||
static int64_t
|
||||
int64_t
|
||||
kopperSwapBuffersWithDamage(__DRIdrawable *dPriv, uint32_t flush_flags, int nrects, const int *rects)
|
||||
{
|
||||
struct dri_drawable *drawable = dri_drawable(dPriv);
|
||||
|
|
@ -850,7 +850,7 @@ kopperSwapBuffersWithDamage(__DRIdrawable *dPriv, uint32_t flush_flags, int nrec
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int64_t
|
||||
int64_t
|
||||
kopperSwapBuffers(__DRIdrawable *dPriv, uint32_t flush_flags)
|
||||
{
|
||||
return kopperSwapBuffersWithDamage(dPriv, flush_flags, 0, NULL);
|
||||
|
|
@ -869,7 +869,7 @@ kopper_swap_buffers(struct dri_drawable *drawable)
|
|||
kopper_swap_buffers_with_damage(drawable, 0, NULL);
|
||||
}
|
||||
|
||||
static __DRIdrawable *
|
||||
__DRIdrawable *
|
||||
kopperCreateNewDrawable(__DRIscreen *psp,
|
||||
const __DRIconfig *config,
|
||||
void *data,
|
||||
|
|
@ -886,7 +886,7 @@ kopperCreateNewDrawable(__DRIscreen *psp,
|
|||
return opaque_dri_drawable(drawable);
|
||||
}
|
||||
|
||||
static void
|
||||
void
|
||||
kopperSetSwapInterval(__DRIdrawable *dPriv, int interval)
|
||||
{
|
||||
struct dri_drawable *drawable = dri_drawable(dPriv);
|
||||
|
|
@ -908,7 +908,7 @@ kopperSetSwapInterval(__DRIdrawable *dPriv, int interval)
|
|||
drawable->info.initial_swap_interval = interval;
|
||||
}
|
||||
|
||||
static int
|
||||
int
|
||||
kopperQueryBufferAge(__DRIdrawable *dPriv)
|
||||
{
|
||||
struct dri_drawable *drawable = dri_drawable(dPriv);
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
driGet*;
|
||||
driIndexConfigAttrib;
|
||||
dri*indContext*;
|
||||
kopper*;
|
||||
dri_loader_get_extensions;
|
||||
@nouveau_drm_screen_create@
|
||||
@radeon_drm_winsys_create@
|
||||
|
|
|
|||
|
|
@ -903,7 +903,7 @@ check_xshm(Display *dpy)
|
|||
}
|
||||
|
||||
static int
|
||||
kopperSetSwapInterval(__GLXDRIdrawable *pdraw, int interval)
|
||||
driswKopperSetSwapInterval(__GLXDRIdrawable *pdraw, int interval)
|
||||
{
|
||||
struct drisw_drawable *pdp = (struct drisw_drawable *) pdraw;
|
||||
struct drisw_screen *psc = (struct drisw_screen *) pdp->base.psc;
|
||||
|
|
@ -1008,7 +1008,7 @@ driswCreateScreen(int screen, struct glx_display *priv, enum glx_driver glx_driv
|
|||
|
||||
if (psc->kopper) {
|
||||
psp->getBufferAge = kopper_get_buffer_age;
|
||||
psp->setSwapInterval = kopperSetSwapInterval;
|
||||
psp->setSwapInterval = driswKopperSetSwapInterval;
|
||||
psp->getSwapInterval = kopperGetSwapInterval;
|
||||
psp->maxSwapInterval = 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue