diff options
author | Marek Olšák <marek.olsak@amd.com> | 2016-03-03 18:43:53 +0100 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2016-04-20 12:18:47 +0200 |
commit | 37d3a26bd620703f63673101f4093d13fb97ddef (patch) | |
tree | 6f7dd03d13b7c6153a963abd47640e9b41aa3de7 /src/glx/dri2_glx.c | |
parent | b6eda708431b91a3b568da0efac845c08cb36796 (diff) | |
download | mesa-37d3a26bd620703f63673101f4093d13fb97ddef.tar.gz |
glx: implement GLX part of interop interface (v2)
v2: - use const
Diffstat (limited to 'src/glx/dri2_glx.c')
-rw-r--r-- | src/glx/dri2_glx.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c index 77103492a4f..cc162f2d1ee 100644 --- a/src/glx/dri2_glx.c +++ b/src/glx/dri2_glx.c @@ -77,12 +77,6 @@ struct dri2_display const __DRIextension *loader_extensions[4]; }; -struct dri2_context -{ - struct glx_context base; - __DRIcontext *driContext; -}; - struct dri2_drawable { __GLXDRIdrawable base; @@ -1061,6 +1055,8 @@ static const struct glx_context_vtable dri2_context_vtable = { .bind_tex_image = dri2_bind_tex_image, .release_tex_image = dri2_release_tex_image, .get_proc_address = NULL, + .interop_query_device_info = dri2_interop_query_device_info, + .interop_export_object = dri2_interop_export_object }; static void @@ -1145,6 +1141,9 @@ dri2BindExtensions(struct dri2_screen *psc, struct glx_display * priv, psc->rendererQuery = (__DRI2rendererQueryExtension *) extensions[i]; __glXEnableDirectExtension(&psc->base, "GLX_MESA_query_renderer"); } + + if (strcmp(extensions[i]->name, __DRI2_INTEROP) == 0) + psc->interop = (__DRI2interopExtension*)extensions[i]; } } |