summaryrefslogtreecommitdiff
path: root/src/glx/glxclient.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/glxclient.h
parentb6eda708431b91a3b568da0efac845c08cb36796 (diff)
glx: implement GLX part of interop interface (v2)
v2: - use const
Diffstat (limited to 'src/glx/glxclient.h')
-rw-r--r--src/glx/glxclient.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/glx/glxclient.h b/src/glx/glxclient.h
index 2776b44a9e5..7a249281081 100644
--- a/src/glx/glxclient.h
+++ b/src/glx/glxclient.h
@@ -208,6 +208,10 @@ typedef struct __GLXattributeMachineRec
__GLXattribute **stackPointer;
} __GLXattributeMachine;
+typedef struct _mesa_glinterop_device_info mesa_glinterop_device_info;
+typedef struct _mesa_glinterop_export_in mesa_glinterop_export_in;
+typedef struct _mesa_glinterop_export_out mesa_glinterop_export_out;
+
struct glx_context_vtable {
void (*destroy)(struct glx_context *ctx);
int (*bind)(struct glx_context *context, struct glx_context *old,
@@ -222,6 +226,11 @@ struct glx_context_vtable {
int buffer, const int *attrib_list);
void (*release_tex_image)(Display * dpy, GLXDrawable drawable, int buffer);
void * (*get_proc_address)(const char *symbol);
+ int (*interop_query_device_info)(struct glx_context *ctx,
+ mesa_glinterop_device_info *out);
+ int (*interop_export_object)(struct glx_context *ctx,
+ const mesa_glinterop_export_in *in,
+ mesa_glinterop_export_out *out);
};
/**