diff options
Diffstat (limited to 'src/glx/dri2_priv.h')
-rw-r--r-- | src/glx/dri2_priv.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/glx/dri2_priv.h b/src/glx/dri2_priv.h index b93d1587aae..e81b1bf416d 100644 --- a/src/glx/dri2_priv.h +++ b/src/glx/dri2_priv.h @@ -43,6 +43,7 @@ struct dri2_screen { const __DRItexBufferExtension *texBuffer; const __DRI2throttleExtension *throttle; const __DRI2rendererQueryExtension *rendererQuery; + const __DRI2interopExtension *interop; const __DRIconfig **driver_configs; void *driver; @@ -51,6 +52,12 @@ struct dri2_screen { int show_fps_interval; }; +struct dri2_context +{ + struct glx_context base; + __DRIcontext *driContext; +}; + _X_HIDDEN int dri2_query_renderer_integer(struct glx_screen *base, int attribute, unsigned int *value); @@ -58,3 +65,12 @@ dri2_query_renderer_integer(struct glx_screen *base, int attribute, _X_HIDDEN int dri2_query_renderer_string(struct glx_screen *base, int attribute, const char **value); + +_X_HIDDEN int +dri2_interop_query_device_info(struct glx_context *ctx, + mesa_glinterop_device_info *out); + +_X_HIDDEN int +dri2_interop_export_object(struct glx_context *ctx, + const mesa_glinterop_export_in *in, + mesa_glinterop_export_out *out); |