mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 03:48:06 +02:00
dri: make DRI_INTEROP 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:
parent
ec3ad889da
commit
012d20c6a3
3 changed files with 24 additions and 9 deletions
|
|
@ -1993,23 +1993,23 @@ static const __DRIrobustnessExtension dri2Robustness = {
|
|||
.base = { __DRI2_ROBUSTNESS, 1 }
|
||||
};
|
||||
|
||||
static int
|
||||
dri2_interop_query_device_info(__DRIcontext *_ctx,
|
||||
int
|
||||
dri_interop_query_device_info(__DRIcontext *_ctx,
|
||||
struct mesa_glinterop_device_info *out)
|
||||
{
|
||||
return st_interop_query_device_info(dri_context(_ctx)->st, out);
|
||||
}
|
||||
|
||||
static int
|
||||
dri2_interop_export_object(__DRIcontext *_ctx,
|
||||
int
|
||||
dri_interop_export_object(__DRIcontext *_ctx,
|
||||
struct mesa_glinterop_export_in *in,
|
||||
struct mesa_glinterop_export_out *out)
|
||||
{
|
||||
return st_interop_export_object(dri_context(_ctx)->st, in, out);
|
||||
}
|
||||
|
||||
static int
|
||||
dri2_interop_flush_objects(__DRIcontext *_ctx,
|
||||
int
|
||||
dri_interop_flush_objects(__DRIcontext *_ctx,
|
||||
unsigned count, struct mesa_glinterop_export_in *objects,
|
||||
struct mesa_glinterop_flush_out *out)
|
||||
{
|
||||
|
|
@ -2018,9 +2018,9 @@ dri2_interop_flush_objects(__DRIcontext *_ctx,
|
|||
|
||||
static const __DRI2interopExtension dri2InteropExtension = {
|
||||
.base = { __DRI2_INTEROP, 2 },
|
||||
.query_device_info = dri2_interop_query_device_info,
|
||||
.export_object = dri2_interop_export_object,
|
||||
.flush_objects = dri2_interop_flush_objects
|
||||
.query_device_info = dri_interop_query_device_info,
|
||||
.export_object = dri_interop_export_object,
|
||||
.flush_objects = dri_interop_flush_objects
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -200,4 +200,16 @@ PUBLIC bool dri_valid_swap_interval(__DRIscreen *driScreen, int interval);
|
|||
PUBLIC void
|
||||
dri_throttle(__DRIcontext *cPriv, __DRIdrawable *dPriv,
|
||||
enum __DRI2throttleReason reason);
|
||||
|
||||
PUBLIC int
|
||||
dri_interop_query_device_info(__DRIcontext *_ctx,
|
||||
struct mesa_glinterop_device_info *out);
|
||||
PUBLIC int
|
||||
dri_interop_export_object(__DRIcontext *_ctx,
|
||||
struct mesa_glinterop_export_in *in,
|
||||
struct mesa_glinterop_export_out *out);
|
||||
PUBLIC int
|
||||
dri_interop_flush_objects(__DRIcontext *_ctx,
|
||||
unsigned count, struct mesa_glinterop_export_in *objects,
|
||||
struct mesa_glinterop_flush_out *out);
|
||||
#endif /* _DRI_UTIL_H_ */
|
||||
|
|
|
|||
|
|
@ -20,6 +20,9 @@
|
|||
dri_throttle;
|
||||
dri_get_initial_swap_interval;
|
||||
dri_valid_swap_interval;
|
||||
dri_interop_query_device_info;
|
||||
dri_interop_export_object;
|
||||
dri_interop_flush_objects;
|
||||
dri_loader_get_extensions;
|
||||
@nouveau_drm_screen_create@
|
||||
@radeon_drm_winsys_create@
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue