summaryrefslogtreecommitdiffstats
path: root/src/glx/dri2_priv.h
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2016-03-03 18:43:53 +0100
committerMarek Olšák <marek.olsak@amd.com>2016-04-20 12:18:47 +0200
commit37d3a26bd620703f63673101f4093d13fb97ddef (patch)
tree6f7dd03d13b7c6153a963abd47640e9b41aa3de7 /src/glx/dri2_priv.h
parentb6eda708431b91a3b568da0efac845c08cb36796 (diff)
downloadexternal_mesa3d-37d3a26bd620703f63673101f4093d13fb97ddef.zip
external_mesa3d-37d3a26bd620703f63673101f4093d13fb97ddef.tar.gz
external_mesa3d-37d3a26bd620703f63673101f4093d13fb97ddef.tar.bz2
glx: implement GLX part of interop interface (v2)
v2: - use const
Diffstat (limited to 'src/glx/dri2_priv.h')
-rw-r--r--src/glx/dri2_priv.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/glx/dri2_priv.h b/src/glx/dri2_priv.h
index b93d158..e81b1bf 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);