2 * Mesa 3-D graphics library
4 * Copyright (C) 2017 Red Hat.
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 * and/or sell copies of the Software, and to permit persons to whom the
11 * Software is furnished to do so, subject to the following conditions:
13 * The above copyright notice and this permission notice shall be included
14 * in all copies or substantial portions of the Software.
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 * DEALINGS IN THE SOFTWARE.
24 * Authors: Dave Airlie <airlied@gmail.com>
25 * Andres Rodriguez <andresx7@gmail.com>
29 * \file externalobjects.h
31 * Declarations of functions related to the API interop extensions.
34 #ifndef EXTERNALOBJECTS_H
35 #define EXTERNALOBJECTS_H
39 extern void GLAPIENTRY
40 _mesa_DeleteMemoryObjectsEXT(GLsizei n
, const GLuint
*memoryObjects
);
42 extern GLboolean GLAPIENTRY
43 _mesa_IsMemoryObjectEXT(GLuint memoryObject
);
45 extern void GLAPIENTRY
46 _mesa_CreateMemoryObjectsEXT(GLsizei n
, GLuint
*memoryObjects
);
48 extern void GLAPIENTRY
49 _mesa_MemoryObjectParameterivEXT(GLuint memoryObject
,
53 extern void GLAPIENTRY
54 _mesa_GetMemoryObjectParameterivEXT(GLuint memoryObject
,
58 extern void GLAPIENTRY
59 _mesa_TexStorageMem2DEXT(GLenum target
,
61 GLenum internalFormat
,
67 extern void GLAPIENTRY
68 _mesa_TexStorageMem2DMultisampleEXT(GLenum target
,
70 GLenum internalFormat
,
73 GLboolean fixedSampleLocations
,
77 extern void GLAPIENTRY
78 _mesa_TexStorageMem3DEXT(GLenum target
,
80 GLenum internalFormat
,
87 extern void GLAPIENTRY
88 _mesa_TexStorageMem3DMultisampleEXT(GLenum target
,
90 GLenum internalFormat
,
94 GLboolean fixedSampleLocations
,
98 extern void GLAPIENTRY
99 _mesa_TextureStorageMem2DEXT(GLuint texture
,
101 GLenum internalFormat
,
107 extern void GLAPIENTRY
108 _mesa_TextureStorageMem2DMultisampleEXT(GLuint texture
,
110 GLenum internalFormat
,
113 GLboolean fixedSampleLocations
,
117 extern void GLAPIENTRY
118 _mesa_TextureStorageMem3DEXT(GLuint texture
,
120 GLenum internalFormat
,
127 extern void GLAPIENTRY
128 _mesa_TextureStorageMem3DMultisampleEXT(GLuint texture
,
130 GLenum internalFormat
,
134 GLboolean fixedSampleLocations
,
138 extern void GLAPIENTRY
139 _mesa_TexStorageMem1DEXT(GLenum target
,
141 GLenum internalFormat
,
146 extern void GLAPIENTRY
147 _mesa_TextureStorageMem1DEXT(GLuint texture
,
149 GLenum internalFormat
,
154 extern void GLAPIENTRY
155 _mesa_GenSemaphoresEXT(GLsizei n
, GLuint
*semaphores
);
157 extern void GLAPIENTRY
158 _mesa_DeleteSemaphoresEXT(GLsizei n
, const GLuint
*semaphores
);
160 extern GLboolean GLAPIENTRY
161 _mesa_IsSemaphoreEXT(GLuint semaphore
);
163 extern void GLAPIENTRY
164 _mesa_SemaphoreParameterui64vEXT(GLuint semaphore
,
166 const GLuint64
*params
);
168 extern void GLAPIENTRY
169 _mesa_GetSemaphoreParameterui64vEXT(GLuint semaphore
,
173 extern void GLAPIENTRY
174 _mesa_WaitSemaphoreEXT(GLuint semaphore
,
175 GLuint numBufferBarriers
,
176 const GLuint
*buffers
,
177 GLuint numTextureBarriers
,
178 const GLuint
*textures
,
179 const GLenum
*srcLayouts
);
181 extern void GLAPIENTRY
182 _mesa_SignalSemaphoreEXT(GLuint semaphore
,
183 GLuint numBufferBarriers
,
184 const GLuint
*buffers
,
185 GLuint numTextureBarriers
,
186 const GLuint
*textures
,
187 const GLenum
*dstLayouts
);
189 extern void GLAPIENTRY
190 _mesa_ImportMemoryFdEXT(GLuint memory
,
195 extern void GLAPIENTRY
196 _mesa_ImportSemaphoreFdEXT(GLuint semaphore
,