1 | /* |
2 | Copyright (c) 2012, Broadcom Europe Ltd |
3 | All rights reserved. |
4 | |
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted provided that the following conditions are met: |
7 | * Redistributions of source code must retain the above copyright |
8 | notice, this list of conditions and the following disclaimer. |
9 | * Redistributions in binary form must reproduce the above copyright |
10 | notice, this list of conditions and the following disclaimer in the |
11 | documentation and/or other materials provided with the distribution. |
12 | * Neither the name of the copyright holder nor the |
13 | names of its contributors may be used to endorse or promote products |
14 | derived from this software without specific prior written permission. |
15 | |
16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
17 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
18 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
19 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY |
20 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
21 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
22 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
23 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
25 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ |
27 | |
28 | #ifndef KHRN_INT_IDS_H |
29 | #define KHRN_INT_IDS_H |
30 | |
31 | /* |
32 | dispatch class ids |
33 | */ |
34 | |
35 | #define GLBASE_ID_11 0x1000 |
36 | #define GLBASE_ID_20 0x2000 |
37 | #define VGBASE_ID 0x3000 |
38 | #define EGLBASE_ID 0x4000 |
39 | |
40 | #define KHRNMISC_ID 0x6000 |
41 | #define GLBASE_ID 0x7000 |
42 | |
43 | #define GET_BASE_ID(x) ((x) & 0xf000) |
44 | |
45 | /* |
46 | common OpenGL ES 1.1 and 2.0 dispatch ids |
47 | */ |
48 | |
49 | #define GLACTIVETEXTURE_ID 0x7001 |
50 | #define GLBINDBUFFER_ID 0x7002 |
51 | #define GLBINDTEXTURE_ID 0x7003 |
52 | #define GLBUFFERDATA_ID 0x7004 |
53 | #define GLBUFFERSUBDATA_ID 0x7005 |
54 | #define GLCLEAR_ID 0x7006 |
55 | #define GLCLEARCOLOR_ID 0x7007 |
56 | #define GLCLEARDEPTHF_ID 0x7008 |
57 | #define GLCLEARSTENCIL_ID 0x700a |
58 | #define GLCOLORMASK_ID 0x700b |
59 | #define GLCOMPRESSEDTEXIMAGE2D_ID 0x700c |
60 | #define GLCOMPRESSEDTEXSUBIMAGE2D_ID 0x700d |
61 | #define GLCOPYTEXIMAGE2D_ID 0x700e |
62 | #define GLCOPYTEXSUBIMAGE2D_ID 0x700f |
63 | #define GLCULLFACE_ID 0x7010 |
64 | #define GLDELETEBUFFERS_ID 0x7011 |
65 | #define GLDELETETEXTURES_ID 0x7012 |
66 | #define GLDEPTHFUNC_ID 0x7013 |
67 | #define GLDEPTHMASK_ID 0x7014 |
68 | #define GLDEPTHRANGEF_ID 0x7015 |
69 | #define GLDISABLE_ID 0x7016 |
70 | #define GLINTDRAWELEMENTS_ID 0x7018 |
71 | #define GLENABLE_ID 0x701a |
72 | #define GLFINISH_ID 0x701b |
73 | #define GLFLUSH_ID 0x701c |
74 | #define GLFRONTFACE_ID 0x701d |
75 | #define GLGENBUFFERS_ID 0x701e |
76 | #define GLGENTEXTURES_ID 0x701f |
77 | #define GLGETBOOLEANV_ID 0x7020 |
78 | #define GLGETBUFFERPARAMETERIV_ID 0x7021 |
79 | #define GLGETERROR_ID 0x7022 |
80 | #define GLGETFLOATV_ID 0x7023 |
81 | #define GLGETINTEGERV_ID 0x7024 |
82 | #define GLGETTEXPARAMETERFV_ID 0x7025 |
83 | #define GLGETTEXPARAMETERIV_ID 0x7026 |
84 | #define GLHINT_ID 0x7027 |
85 | #define GLISBUFFER_ID 0x7028 |
86 | #define GLISENABLED_ID 0x702a |
87 | #define GLISTEXTURE_ID 0x702b |
88 | #define GLLINEWIDTH_ID 0x702c |
89 | #define GLPOLYGONOFFSET_ID 0x702d |
90 | #define GLREADPIXELS_ID 0x702e |
91 | #define GLSAMPLECOVERAGE_ID 0x702f |
92 | #define GLSCISSOR_ID 0x7030 |
93 | #define GLTEXIMAGE2D_ID 0x7031 |
94 | #define GLTEXPARAMETERF_ID 0x7032 |
95 | #define GLTEXPARAMETERI_ID 0x7033 |
96 | #define GLTEXSUBIMAGE2D_ID 0x7034 |
97 | #define GLVIEWPORT_ID 0x7035 |
98 | #define GLINTFINDMAX_ID 0x7036 |
99 | #define GLINTCACHECREATE_ID 0x7037 |
100 | #define GLINTCACHEDELETE_ID 0x7038 |
101 | #define GLINTCACHEDATA_ID 0x703a |
102 | #define GLINTCACHEGROW_ID 0x703b |
103 | #define GLINTCACHEUSE_ID 0x708c |
104 | #define GLBLENDFUNCSEPARATE_ID 0x708d |
105 | #define GLSTENCILFUNCSEPARATE_ID 0x708e |
106 | #define GLSTENCILMASKSEPARATE_ID 0x708f |
107 | #define GLSTENCILOPSEPARATE_ID 0x7090 |
108 | #define GLEGLIMAGETARGETTEXTURE2DOES_ID 0x7091 /* GL_OES_EGL_image */ |
109 | #define GLGLOBALIMAGETEXTURE2DOES_ID 0x7092 /* GL_OES_EGL_image/EGL_BRCM_global_image */ |
110 | #define GLDISCARDFRAMEBUFFEREXT_ID 0x7100 |
111 | /* GL_OES_framebuffer_object */ |
112 | #define GLISRENDERBUFFER_ID 0x7101 |
113 | #define GLBINDRENDERBUFFER_ID 0x7102 |
114 | #define GLDELETERENDERBUFFERS_ID 0x7103 |
115 | #define GLGENRENDERBUFFERS_ID 0x7104 |
116 | #define GLRENDERBUFFERSTORAGE_ID 0x7105 |
117 | #define GLGETRENDERBUFFERPARAMETERIV_ID 0x7106 |
118 | #define GLISFRAMEBUFFER_ID 0x7107 |
119 | #define GLBINDFRAMEBUFFER_ID 0x7108 |
120 | #define GLDELETEFRAMEBUFFERS_ID 0x7109 |
121 | #define GLGENFRAMEBUFFERS_ID 0x710a |
122 | #define GLCHECKFRAMEBUFFERSTATUS_ID 0x710b |
123 | #define GLFRAMEBUFFERTEXTURE2D_ID 0x710c |
124 | #define GLFRAMEBUFFERRENDERBUFFER_ID 0x710d |
125 | #define GLGETFRAMEBUFFERATTACHMENTPARAMETERIV_ID 0x710e |
126 | #define GLGENERATEMIPMAP_ID 0x710f |
127 | #define GLTEXPARAMETERFV_ID 0x7110 |
128 | #define GLTEXPARAMETERIV_ID 0x7111 |
129 | #define GLINSERTEVENTMARKEREXT_ID 0x7112 |
130 | #define GLPUSHGROUPMARKEREXT_ID 0x7113 |
131 | #define GLPOPGROUPMARKEREXT_ID 0x7114 |
132 | #define TEXSUBIMAGE2DASYNC_ID 0x7115 |
133 | #define GLPIXELSTOREI_ID 0x7116 |
134 | #define GLINTATTRIBPOINTER_ID 0x7117 |
135 | #define GLINTATTRIB_ID 0x7118 |
136 | #define GLINTATTRIBENABLE_ID 0x7119 |
137 | |
138 | |
139 | /* |
140 | OpenGL ES 1.1 specific dispatch ids |
141 | */ |
142 | #define GLALPHAFUNC_ID_11 0x1001 |
143 | #define GLALPHAFUNCX_ID_11 0x1002 |
144 | #define GLCLEARCOLORX_ID_11 0x1004 |
145 | #define GLCLEARDEPTHX_ID_11 0x1005 |
146 | #define GLCLIPPLANEF_ID_11 0x1006 |
147 | #define GLCLIPPLANEX_ID_11 0x1007 |
148 | //#define GLCOLORPOINTER_ID_11 0x1008 |
149 | #define GLCLIENTACTIVETEXTURE_ID_11 0x1009 |
150 | #define GLDEPTHRANGEX_ID_11 0x100a |
151 | #define GLFOGF_ID_11 0x100b |
152 | #define GLFOGX_ID_11 0x100c |
153 | #define GLFOGFV_ID_11 0x100d |
154 | #define GLFOGXV_ID_11 0x100e |
155 | #define GLFRUSTUMF_ID_11 0x100f |
156 | #define GLFRUSTUMX_ID_11 0x1020 |
157 | #define GLGETCLIPPLANEF_ID_11 0x1021 |
158 | #define GLGETCLIPPLANEX_ID_11 0x1022 |
159 | #define GLGETFIXEDV_ID_11 0x1023 |
160 | #define GLGETLIGHTFV_ID_11 0x1024 |
161 | #define GLGETLIGHTXV_ID_11 0x1025 |
162 | #define GLGETMATERIALFV_ID_11 0x1026 |
163 | #define GLGETMATERIALXV_ID_11 0x1027 |
164 | #define GLGETTEXENVFV_ID_11 0x1028 |
165 | #define GLGETTEXENVIV_ID_11 0x102a |
166 | #define GLGETTEXENVXV_ID_11 0x102b |
167 | #define GLGETTEXPARAMETERXV_ID_11 0x102c |
168 | #define GLLIGHTF_ID_11 0x102d |
169 | #define GLLIGHTX_ID_11 0x102e |
170 | #define GLLIGHTFV_ID_11 0x102f |
171 | #define GLLIGHTXV_ID_11 0x1030 |
172 | #define GLLIGHTMODELF_ID_11 0x1031 |
173 | #define GLLIGHTMODELX_ID_11 0x1032 |
174 | #define GLLIGHTMODELFV_ID_11 0x1033 |
175 | #define GLLIGHTMODELXV_ID_11 0x1034 |
176 | #define GLLINEWIDTHX_ID_11 0x1035 |
177 | #define GLLOADIDENTITY_ID_11 0x1036 |
178 | #define GLLOADMATRIXF_ID_11 0x1037 |
179 | #define GLLOADMATRIXX_ID_11 0x1038 |
180 | #define GLLOGICOP_ID_11 0x103a |
181 | #define GLMATERIALF_ID_11 0x103b |
182 | #define GLMATERIALX_ID_11 0x103c |
183 | #define GLMATERIALFV_ID_11 0x103d |
184 | #define GLMATERIALXV_ID_11 0x103e |
185 | #define GLMATRIXMODE_ID_11 0x103f |
186 | #define GLMULTMATRIXF_ID_11 0x1040 |
187 | #define GLMULTMATRIXX_ID_11 0x1041 |
188 | //#define GLNORMALPOINTER_ID_11 0x1042 |
189 | #define GLORTHOF_ID_11 0x1043 |
190 | #define GLORTHOX_ID_11 0x1044 |
191 | //#define GLPIXELSTOREI_ID_11 0x1045 |
192 | #define GLPOINTPARAMETERF_ID_11 0x1046 |
193 | #define GLPOINTPARAMETERX_ID_11 0x1047 |
194 | #define GLPOINTPARAMETERFV_ID_11 0x1048 |
195 | #define GLPOINTPARAMETERXV_ID_11 0x104a |
196 | #define GLPOLYGONOFFSETX_ID_11 0x104b |
197 | #define GLPOPMATRIX_ID_11 0x104c |
198 | #define GLPUSHMATRIX_ID_11 0x104d |
199 | #define GLROTATEF_ID_11 0x104e |
200 | #define GLROTATEX_ID_11 0x104f |
201 | #define GLSAMPLECOVERAGEX_ID_11 0x1050 |
202 | #define GLSCALEF_ID_11 0x1051 |
203 | #define GLSCALEX_ID_11 0x1052 |
204 | #define GLSHADEMODEL_ID_11 0x1053 |
205 | #define GLTEXENVF_ID_11 0x1057 |
206 | #define GLTEXENVI_ID_11 0x1058 |
207 | #define GLTEXENVX_ID_11 0x105a |
208 | #define GLTEXENVFV_ID_11 0x105b |
209 | #define GLTEXENVIV_ID_11 0x105c |
210 | #define GLTEXENVXV_ID_11 0x105d |
211 | #define GLTEXPARAMETERX_ID_11 0x105e |
212 | #define GLTRANSLATEF_ID_11 0x105f |
213 | #define GLTRANSLATEX_ID_11 0x1060 |
214 | //#define GLTEXCOORDPOINTER_ID_11 0x1061 |
215 | //#define GLVERTEXPOINTER_ID_11 0x1062 |
216 | |
217 | //#define GLPOINTSIZEPOINTEROES_ID_11 0x1063 |
218 | #define GLINTCOLOR_ID_11 0x1064 |
219 | #define GLQUERYMATRIXXOES_ID_11 0x1065 |
220 | #define GLTEXPARAMETERXV_ID_11 0x1067 |
221 | #define GLDRAWTEXFOES_ID_11 0x1068 |
222 | |
223 | #define GLCURRENTPALETTEMATRIXOES_ID_11 0x1069 /* GL_OES_matrix_palette */ |
224 | #define GLLOADPALETTEFROMMODELVIEWMATRIXOES_ID_11 0x1070 /* GL_OES_matrix_palette */ |
225 | //#define GLMATRIXINDEXPOINTEROES_ID_11 0x1071 /* GL_OES_matrix_palette */ |
226 | //#define GLWEIGHTPOINTEROES_ID_11 0x1072 /* GL_OES_matrix_palette */ |
227 | |
228 | /* |
229 | OpenGL ES 2.0 dispatch ids |
230 | */ |
231 | #define GLATTACHSHADER_ID_20 0x2001 |
232 | #define GLBINDATTRIBLOCATION_ID_20 0x2002 |
233 | #define GLBLENDCOLOR_ID_20 0x2005 |
234 | #define GLBLENDEQUATIONSEPARATE_ID_20 0x2006 |
235 | #define GLCOMPILESHADER_ID_20 0x200a |
236 | #define GLCREATEPROGRAM_ID_20 0x200b |
237 | #define GLCREATESHADER_ID_20 0x200c |
238 | #define GLDELETEPROGRAM_ID_20 0x200e |
239 | #define GLDELETESHADER_ID_20 0x2010 |
240 | #define GLDETACHSHADER_ID_20 0x2011 |
241 | #define GLGETATTRIBLOCATION_ID_20 0x2017 |
242 | #define GLGETACTIVEATTRIB_ID_20 0x2018 |
243 | #define GLGETACTIVEUNIFORM_ID_20 0x201a |
244 | #define GLGETATTACHEDSHADERS_ID_20 0x201b |
245 | #define GLGETPROGRAMIV_ID_20 0x201d |
246 | #define GLGETPROGRAMINFOLOG_ID_20 0x201e |
247 | #define GLGETSHADERIV_ID_20 0x2020 |
248 | #define GLGETSHADERINFOLOG_ID_20 0x2021 |
249 | #define GLGETSHADERSOURCE_ID_20 0x2022 |
250 | #define GLGETSHADERPRECISIONFORMAT_ID_20 0x2023 |
251 | #define GLGETUNIFORMFV_ID_20 0x2024 |
252 | #define GLGETUNIFORMIV_ID_20 0x2025 |
253 | #define GLGETUNIFORMLOCATION_ID_20 0x2026 |
254 | #define GLISPROGRAM_ID_20 0x2028 |
255 | #define GLISSHADER_ID_20 0x202b |
256 | #define GLLINKPROGRAM_ID_20 0x202c |
257 | //#define GLPIXELSTOREI_ID_20 0x202d |
258 | #define GLPOINTSIZE_ID_20 0x202e |
259 | #define GLSHADERSOURCE_ID_20 0x2030 |
260 | #define GLTEXPARAMETERIV_ID_20 0x2034 |
261 | #define GLUNIFORM1F_ID_20 0x2035 |
262 | #define GLUNIFORM2F_ID_20 0x2036 |
263 | #define GLUNIFORM3F_ID_20 0x2037 |
264 | #define GLUNIFORM4F_ID_20 0x2038 |
265 | #define GLUNIFORM1I_ID_20 0x203a |
266 | #define GLUNIFORM2I_ID_20 0x203b |
267 | #define GLUNIFORM3I_ID_20 0x203c |
268 | #define GLUNIFORM4I_ID_20 0x203d |
269 | #define GLUNIFORM1FV_ID_20 0x203e |
270 | #define GLUNIFORM2FV_ID_20 0x203f |
271 | #define GLUNIFORM3FV_ID_20 0x2040 |
272 | #define GLUNIFORM4FV_ID_20 0x2041 |
273 | #define GLUNIFORM1IV_ID_20 0x2042 |
274 | #define GLUNIFORM2IV_ID_20 0x2043 |
275 | #define GLUNIFORM3IV_ID_20 0x2044 |
276 | #define GLUNIFORM4IV_ID_20 0x2045 |
277 | #define GLUNIFORMMATRIX2FV_ID_20 0x2046 |
278 | #define GLUNIFORMMATRIX3FV_ID_20 0x2047 |
279 | #define GLUNIFORMMATRIX4FV_ID_20 0x2048 |
280 | #define GLUSEPROGRAM_ID_20 0x204a |
281 | #define GLVALIDATEPROGRAM_ID_20 0x204b |
282 | //#define GLVERTEXATTRIBPOINTER_ID_20 0x204c |
283 | #define GLEGLIMAGETARGETRENDERBUFFERSTORAGEOES_ID_20 0x204d /* GL_OES_EGL_image */ |
284 | #define GLGLOBALIMAGERENDERBUFFERSTORAGEOES_ID_20 0x204e /* GL_OES_EGL_image/EGL_BRCM_global_image */ |
285 | |
286 | /* |
287 | OpenVG dispatch ids |
288 | */ |
289 | |
290 | #define VGCLEARERROR_ID 0x3000 |
291 | #define VGSETERROR_ID 0x3001 |
292 | #define VGGETERROR_ID 0x3002 |
293 | #define VGFLUSH_ID 0x3003 |
294 | #define VGFINISH_ID 0x3004 |
295 | #define VGCREATESTEMS_ID 0x3005 |
296 | #define VGDESTROYSTEM_ID 0x3006 |
297 | #define VGSETIV_ID 0x3007 |
298 | #define VGSETFV_ID 0x3008 |
299 | #define VGGETFV_ID 0x3009 |
300 | #define VGSETPARAMETERIV_ID 0x300a |
301 | #define VGSETPARAMETERFV_ID 0x300b |
302 | #define VGGETPARAMETERIV_ID 0x300c |
303 | #define VGLOADMATRIX_ID 0x300d |
304 | #define VGMASK_ID 0x300e |
305 | #define VGRENDERTOMASK_ID 0x300f /* vg 1.1 */ |
306 | #define VGCREATEMASKLAYER_ID 0x3010 /* vg 1.1 */ |
307 | #define VGDESTROYMASKLAYER_ID 0x3011 /* vg 1.1 */ |
308 | #define VGFILLMASKLAYER_ID 0x3012 /* vg 1.1 */ |
309 | #define VGCOPYMASK_ID 0x3013 /* vg 1.1 */ |
310 | #define VGCLEAR_ID 0x3014 |
311 | #define VGCREATEPATH_ID 0x3015 |
312 | #define VGCLEARPATH_ID 0x3016 |
313 | #define VGDESTROYPATH_ID 0x3017 |
314 | #define VGREMOVEPATHCAPABILITIES_ID 0x3018 |
315 | #define VGAPPENDPATH_ID 0x3019 |
316 | #define VGAPPENDPATHDATA_ID 0x301a |
317 | #define VGMODIFYPATHCOORDS_ID 0x301b |
318 | #define VGTRANSFORMPATH_ID 0x301c |
319 | #define VGINTERPOLATEPATH_ID 0x301d |
320 | #define VGPATHLENGTH_ID 0x301e |
321 | #define VGPOINTALONGPATH_ID 0x301f |
322 | #define VGPATHBOUNDS_ID 0x3020 |
323 | #define VGPATHTRANSFORMEDBOUNDS_ID 0x3021 |
324 | #define VGDRAWPATH_ID 0x3022 |
325 | #define VGCREATEPAINT_ID 0x3023 |
326 | #define VGDESTROYPAINT_ID 0x3024 |
327 | #define VGSETPAINT_ID 0x3025 |
328 | #define VGPAINTPATTERN_ID 0x3026 |
329 | #define VGCREATEIMAGE_ID 0x3027 |
330 | #define VGDESTROYIMAGE_ID 0x3028 |
331 | #define VGCLEARIMAGE_ID 0x3029 |
332 | #define VGIMAGESUBDATA_ID 0x302a |
333 | #define VGGETIMAGESUBDATA_ID 0x302b |
334 | #define VGCHILDIMAGE_ID 0x302c |
335 | #define VGGETPARENT_ID 0x302d |
336 | #define VGCOPYIMAGE_ID 0x302e |
337 | #define VGDRAWIMAGE_ID 0x302f |
338 | #define VGSETPIXELS_ID 0x3030 |
339 | #define VGWRITEPIXELS_ID 0x3031 |
340 | #define VGGETPIXELS_ID 0x3032 |
341 | #define VGREADPIXELS_ID 0x3033 |
342 | #define VGCOPYPIXELS_ID 0x3034 |
343 | #define VGCREATEFONT_ID 0x3035 /* vg 1.1 */ |
344 | #define VGDESTROYFONT_ID 0x3036 /* vg 1.1 */ |
345 | #define VGSETGLYPHTOPATH_ID 0x3037 /* vg 1.1 */ |
346 | #define VGSETGLYPHTOIMAGE_ID 0x3038 /* vg 1.1 */ |
347 | #define VGCLEARGLYPH_ID 0x3039 /* vg 1.1 */ |
348 | #define VGDRAWGLYPH_ID 0x303a /* vg 1.1 */ |
349 | #define VGDRAWGLYPHS_ID 0x303b /* vg 1.1 */ |
350 | #define VGCOLORMATRIX_ID 0x303c |
351 | #define VGCONVOLVE_ID 0x303d |
352 | #define VGSEPARABLECONVOLVE_ID 0x303e |
353 | #define VGGAUSSIANBLUR_ID 0x303f |
354 | #define VGLOOKUP_ID 0x3040 |
355 | #define VGLOOKUPSINGLE_ID 0x3041 |
356 | #define VGULINE_ID 0x3042 /* vgu */ |
357 | #define VGUPOLYGON_ID 0x3043 /* vgu */ |
358 | #define VGURECT_ID 0x3044 /* vgu */ |
359 | #define VGUROUNDRECT_ID 0x3045 /* vgu */ |
360 | #define VGUELLIPSE_ID 0x3046 /* vgu */ |
361 | #define VGUARC_ID 0x3047 /* vgu */ |
362 | #define VGCREATEEGLIMAGETARGETKHR_ID 0x3048 /* VG_KHR_EGL_image */ |
363 | #define VGCREATEIMAGEFROMGLOBALIMAGE_ID 0x3049 /* VG_KHR_EGL_image/EGL_BRCM_global_image */ |
364 | |
365 | /* |
366 | EGL dispatch ids |
367 | */ |
368 | |
369 | #define EGLINTCREATESURFACE_ID 0x4000 |
370 | #define EGLINTCREATEGLES11_ID 0x4001 |
371 | #define EGLINTCREATEGLES20_ID 0x4002 |
372 | #define EGLINTCREATEVG_ID 0x4003 |
373 | #define EGLINTDESTROYSURFACE_ID 0x4004 |
374 | #define EGLINTDESTROYGL_ID 0x4005 |
375 | #define EGLINTDESTROYVG_ID 0x4006 |
376 | /*#define EGLINTRESIZESURFACE_ID 0x4007*/ |
377 | #define EGLINTMAKECURRENT_ID 0x4008 |
378 | #define EGLINTFLUSHANDWAIT_ID 0x4009 |
379 | #define EGLINTSWAPBUFFERS_ID 0x400a |
380 | #define EGLINTSELECTMIPMAP_ID 0x400b |
381 | #define EGLINTFLUSH_ID 0x400c |
382 | #define EGLINTGETCOLORDATA_ID 0x400d |
383 | #define EGLINTSETCOLORDATA_ID 0x400e |
384 | #define EGLINTBINDTEXIMAGE_ID 0x400f |
385 | #define EGLINTRELEASETEXIMAGE_ID 0x4010 |
386 | #define EGLINTCREATEPBUFFERFROMVGIMAGE_ID 0x4011 |
387 | #define EGLINTCREATEWRAPPEDSURFACE_ID 0x4012 |
388 | #define EGLCREATEIMAGEKHR_ID 0x4013 /* EGL_KHR_image */ |
389 | #define EGLDESTROYIMAGEKHR_ID 0x4014 /* EGL_KHR_image */ |
390 | #define EGLINTOPENMAXILDONEMARKER_ID 0x4015 /* EGL-OpenMAX interworking (Broadcom-specific) */ |
391 | #define EGLINTSWAPINTERVAL_ID 0x4016 |
392 | #define EGLINTGETPROCESSMEMUSAGE_ID 0x4017 /* EGL_BRCM_mem_usage */ |
393 | #define EGLINTGETGLOBALMEMUSAGE_ID 0x4018 |
394 | #define EGLCREATEGLOBALIMAGEBRCM_ID 0x4019 /* EGL_BRCM_global_image */ |
395 | #define EGLFILLGLOBALIMAGEBRCM_ID 0x401a /* EGL_BRCM_global_image */ |
396 | #define EGLCREATECOPYGLOBALIMAGEBRCM_ID 0x401b /* EGL_BRCM_global_image */ |
397 | #define EGLDESTROYGLOBALIMAGEBRCM_ID 0x401c /* EGL_BRCM_global_image */ |
398 | #define EGLQUERYGLOBALIMAGEBRCM_ID 0x401d /* EGL_BRCM_global_image */ |
399 | #define EGLINTCREATESYNC_ID 0x401e /* EGL_KHR_fence_sync */ |
400 | #define EGLINTDESTROYSYNC_ID 0x401f /* EGL_KHR_fence_sync */ |
401 | #define EGLINITPERFMONITORBRCM_ID 0x4020 /* EGL_BRCM_perf_monitor */ |
402 | #define EGLTERMPERFMONITORBRCM_ID 0x4021 /* EGL_BRCM_perf_monitor */ |
403 | #define EGLINTDESTROYBYPID_ID 0x4022 |
404 | #define EGLINTIMAGESETCOLORDATA_ID 0x4023 /* EGL_KHR_image (client-side pixmaps etc.) */ |
405 | #define EGLPERFSTATSRESETBRCM_ID 0x4024 /* EGL_BRCM_perf_stats */ |
406 | #define EGLPERFSTATSGETBRCM_ID 0x4025 /* EGL_BRCM_perf_stats */ |
407 | #define EGLINTCREATEENDPOINTIMAGE_ID 0x4026 /* EGL_NOK_image_endpoint */ |
408 | #define EGLINTDESTROYENDPOINTIMAGE_ID 0x4027 /* EGL_NOK_image_endpoint */ |
409 | #define EGLINTACQUIREENDPOINTIMAGE_ID 0x4028 /* EGL_NOK_image_endpoint */ |
410 | #define EGLINITDRIVERMONITORBRCM_ID 0x4029 /* EGL_BRCM_driver_monitor */ |
411 | #define EGLTERMDRIVERMONITORBRCM_ID 0x402a /* EGL_BRCM_driver_monitor */ |
412 | #define EGLGETDRIVERMONITORXMLBRCM_ID 0x402b /* EGL_BRCM_driver_monitor */ |
413 | #define EGLDIRECTRENDERINGPOINTER_ID 0x402c /* DIRECT_RENDERING */ |
414 | #define EGLPUSHRENDERINGIMAGE_ID 0x402d /* Android GL App supportN */ |
415 | #define EGLINTUPDATETEXTURE_ID 0x402e /* Android GL App supportN */ |
416 | #define EGLINTCREATESYNCFENCE_ID 0x402f /* EGL_KHR_fence_sync */ |
417 | |
418 | /* |
419 | Miscellaneous driver control functions (not related to any particular API) |
420 | */ |
421 | |
422 | #define KHRNMISCTRYUNLOAD_ID 0x6000 |
423 | #define KHRNMISCBULKRXREQUIRED_ID 0x6001 /* bulk transfer client->server advance notifier */ |
424 | |
425 | /* |
426 | signalling length used to indicate a NULL argument |
427 | */ |
428 | |
429 | #define LENGTH_SIGNAL_NULL 0xffffffff |
430 | |
431 | /* |
432 | async (KHAN) channel commands |
433 | */ |
434 | |
435 | #define ASYNC_COMMAND_WAIT 0 |
436 | #define ASYNC_COMMAND_POST 1 |
437 | #define ASYNC_COMMAND_DESTROY 2 |
438 | #define ASYNC_RENDER_COMPLETE 3 |
439 | #define ASYNC_ERROR_NOTIFY 4 |
440 | #endif |
441 | |