xref: /aosp_15_r20/external/mesa3d/src/glx/glxextensions.h (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1*61046927SAndroid Build Coastguard Worker /*
2*61046927SAndroid Build Coastguard Worker  * (C) Copyright IBM Corporation 2002, 2004
3*61046927SAndroid Build Coastguard Worker  * All Rights Reserved.
4*61046927SAndroid Build Coastguard Worker  *
5*61046927SAndroid Build Coastguard Worker  * Permission is hereby granted, free of charge, to any person obtaining a
6*61046927SAndroid Build Coastguard Worker  * copy of this software and associated documentation files (the "Software"),
7*61046927SAndroid Build Coastguard Worker  * to deal in the Software without restriction, including without limitation
8*61046927SAndroid Build Coastguard Worker  * on the rights to use, copy, modify, merge, publish, distribute, sub
9*61046927SAndroid Build Coastguard Worker  * license, and/or sell copies of the Software, and to permit persons to whom
10*61046927SAndroid Build Coastguard Worker  * the Software is furnished to do so, subject to the following conditions:
11*61046927SAndroid Build Coastguard Worker  *
12*61046927SAndroid Build Coastguard Worker  * The above copyright notice and this permission notice (including the next
13*61046927SAndroid Build Coastguard Worker  * paragraph) shall be included in all copies or substantial portions of the
14*61046927SAndroid Build Coastguard Worker  * Software.
15*61046927SAndroid Build Coastguard Worker  *
16*61046927SAndroid Build Coastguard Worker  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17*61046927SAndroid Build Coastguard Worker  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18*61046927SAndroid Build Coastguard Worker  * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
19*61046927SAndroid Build Coastguard Worker  * THE COPYRIGHT HOLDERS AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,
20*61046927SAndroid Build Coastguard Worker  * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
21*61046927SAndroid Build Coastguard Worker  * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
22*61046927SAndroid Build Coastguard Worker  * USE OR OTHER DEALINGS IN THE SOFTWARE.
23*61046927SAndroid Build Coastguard Worker  */
24*61046927SAndroid Build Coastguard Worker 
25*61046927SAndroid Build Coastguard Worker /**
26*61046927SAndroid Build Coastguard Worker  * \file glxextensions.h
27*61046927SAndroid Build Coastguard Worker  *
28*61046927SAndroid Build Coastguard Worker  * \author Ian Romanick <[email protected]>
29*61046927SAndroid Build Coastguard Worker  */
30*61046927SAndroid Build Coastguard Worker 
31*61046927SAndroid Build Coastguard Worker #ifndef GLX_GLXEXTENSIONS_H
32*61046927SAndroid Build Coastguard Worker #define GLX_GLXEXTENSIONS_H
33*61046927SAndroid Build Coastguard Worker 
34*61046927SAndroid Build Coastguard Worker #ifdef __cplusplus
35*61046927SAndroid Build Coastguard Worker extern "C" {
36*61046927SAndroid Build Coastguard Worker #endif
37*61046927SAndroid Build Coastguard Worker 
38*61046927SAndroid Build Coastguard Worker enum
39*61046927SAndroid Build Coastguard Worker {
40*61046927SAndroid Build Coastguard Worker    ARB_context_flush_control_bit = 0,
41*61046927SAndroid Build Coastguard Worker    ARB_create_context_bit,
42*61046927SAndroid Build Coastguard Worker    ARB_create_context_no_error_bit,
43*61046927SAndroid Build Coastguard Worker    ARB_create_context_profile_bit,
44*61046927SAndroid Build Coastguard Worker    ARB_create_context_robustness_bit,
45*61046927SAndroid Build Coastguard Worker    ARB_fbconfig_float_bit,
46*61046927SAndroid Build Coastguard Worker    ARB_get_proc_address_bit,
47*61046927SAndroid Build Coastguard Worker    ARB_multisample_bit,
48*61046927SAndroid Build Coastguard Worker    EXT_buffer_age_bit,
49*61046927SAndroid Build Coastguard Worker    EXT_create_context_es2_profile_bit,
50*61046927SAndroid Build Coastguard Worker    EXT_create_context_es_profile_bit,
51*61046927SAndroid Build Coastguard Worker    EXT_fbconfig_packed_float_bit,
52*61046927SAndroid Build Coastguard Worker    EXT_framebuffer_sRGB_bit,
53*61046927SAndroid Build Coastguard Worker    EXT_import_context_bit,
54*61046927SAndroid Build Coastguard Worker    EXT_no_config_context_bit,
55*61046927SAndroid Build Coastguard Worker    EXT_swap_control_bit,
56*61046927SAndroid Build Coastguard Worker    EXT_swap_control_tear_bit,
57*61046927SAndroid Build Coastguard Worker    EXT_texture_from_pixmap_bit,
58*61046927SAndroid Build Coastguard Worker    EXT_visual_info_bit,
59*61046927SAndroid Build Coastguard Worker    EXT_visual_rating_bit,
60*61046927SAndroid Build Coastguard Worker    ATI_pixel_format_float_bit,
61*61046927SAndroid Build Coastguard Worker    INTEL_swap_event_bit,
62*61046927SAndroid Build Coastguard Worker    MESA_copy_sub_buffer_bit,
63*61046927SAndroid Build Coastguard Worker    MESA_gl_interop_bit,
64*61046927SAndroid Build Coastguard Worker    MESA_query_renderer_bit,
65*61046927SAndroid Build Coastguard Worker    MESA_swap_control_bit,
66*61046927SAndroid Build Coastguard Worker    MESA_swap_frame_usage_bit,
67*61046927SAndroid Build Coastguard Worker    NV_float_buffer_bit,
68*61046927SAndroid Build Coastguard Worker    OML_sync_control_bit,
69*61046927SAndroid Build Coastguard Worker    SGIS_multisample_bit,
70*61046927SAndroid Build Coastguard Worker    SGIX_fbconfig_bit,
71*61046927SAndroid Build Coastguard Worker    SGIX_pbuffer_bit,
72*61046927SAndroid Build Coastguard Worker    SGIX_visual_select_group_bit,
73*61046927SAndroid Build Coastguard Worker    SGI_make_current_read_bit,
74*61046927SAndroid Build Coastguard Worker    SGI_swap_control_bit,
75*61046927SAndroid Build Coastguard Worker    SGI_video_sync_bit,
76*61046927SAndroid Build Coastguard Worker 
77*61046927SAndroid Build Coastguard Worker    __NUM_GLX_EXTS,
78*61046927SAndroid Build Coastguard Worker };
79*61046927SAndroid Build Coastguard Worker 
80*61046927SAndroid Build Coastguard Worker #define __GLX_EXT_BYTES   ((__NUM_GLX_EXTS + 7) / 8)
81*61046927SAndroid Build Coastguard Worker 
82*61046927SAndroid Build Coastguard Worker /* From the GLX perspective, the ARB and EXT extensions are identical.  Use a
83*61046927SAndroid Build Coastguard Worker  * single bit for both.
84*61046927SAndroid Build Coastguard Worker  */
85*61046927SAndroid Build Coastguard Worker #define ARB_framebuffer_sRGB_bit EXT_framebuffer_sRGB_bit
86*61046927SAndroid Build Coastguard Worker 
87*61046927SAndroid Build Coastguard Worker enum
88*61046927SAndroid Build Coastguard Worker {
89*61046927SAndroid Build Coastguard Worker    GL_ARB_depth_texture_bit = 0,
90*61046927SAndroid Build Coastguard Worker    GL_ARB_draw_buffers_bit,
91*61046927SAndroid Build Coastguard Worker    GL_ARB_fragment_program_bit,
92*61046927SAndroid Build Coastguard Worker    GL_ARB_fragment_program_shadow_bit,
93*61046927SAndroid Build Coastguard Worker    GL_ARB_framebuffer_object_bit,
94*61046927SAndroid Build Coastguard Worker    GL_ARB_imaging_bit,
95*61046927SAndroid Build Coastguard Worker    GL_ARB_multisample_bit,
96*61046927SAndroid Build Coastguard Worker    GL_ARB_multitexture_bit,
97*61046927SAndroid Build Coastguard Worker    GL_ARB_occlusion_query_bit,
98*61046927SAndroid Build Coastguard Worker    GL_ARB_point_parameters_bit,
99*61046927SAndroid Build Coastguard Worker    GL_ARB_point_sprite_bit,
100*61046927SAndroid Build Coastguard Worker    GL_ARB_shadow_bit,
101*61046927SAndroid Build Coastguard Worker    GL_ARB_shadow_ambient_bit,
102*61046927SAndroid Build Coastguard Worker    GL_ARB_texture_border_clamp_bit,
103*61046927SAndroid Build Coastguard Worker    GL_ARB_texture_cube_map_bit,
104*61046927SAndroid Build Coastguard Worker    GL_ARB_texture_compression_bit,
105*61046927SAndroid Build Coastguard Worker    GL_ARB_texture_env_add_bit,
106*61046927SAndroid Build Coastguard Worker    GL_ARB_texture_env_combine_bit,
107*61046927SAndroid Build Coastguard Worker    GL_ARB_texture_env_crossbar_bit,
108*61046927SAndroid Build Coastguard Worker    GL_ARB_texture_env_dot3_bit,
109*61046927SAndroid Build Coastguard Worker    GL_ARB_texture_filter_anisotropic_bit,
110*61046927SAndroid Build Coastguard Worker    GL_ARB_texture_mirrored_repeat_bit,
111*61046927SAndroid Build Coastguard Worker    GL_ARB_texture_non_power_of_two_bit,
112*61046927SAndroid Build Coastguard Worker    GL_ARB_texture_rectangle_bit,
113*61046927SAndroid Build Coastguard Worker    GL_ARB_texture_rg_bit,
114*61046927SAndroid Build Coastguard Worker    GL_ARB_transpose_matrix_bit,
115*61046927SAndroid Build Coastguard Worker    GL_ARB_vertex_buffer_object_bit,
116*61046927SAndroid Build Coastguard Worker    GL_ARB_vertex_program_bit,
117*61046927SAndroid Build Coastguard Worker    GL_ARB_window_pos_bit,
118*61046927SAndroid Build Coastguard Worker    GL_EXT_abgr_bit,
119*61046927SAndroid Build Coastguard Worker    GL_EXT_bgra_bit,
120*61046927SAndroid Build Coastguard Worker    GL_EXT_blend_color_bit,
121*61046927SAndroid Build Coastguard Worker    GL_EXT_blend_equation_separate_bit,
122*61046927SAndroid Build Coastguard Worker    GL_EXT_blend_func_separate_bit,
123*61046927SAndroid Build Coastguard Worker    GL_EXT_blend_logic_op_bit,
124*61046927SAndroid Build Coastguard Worker    GL_EXT_blend_minmax_bit,
125*61046927SAndroid Build Coastguard Worker    GL_EXT_blend_subtract_bit,
126*61046927SAndroid Build Coastguard Worker    GL_EXT_clip_volume_hint_bit,
127*61046927SAndroid Build Coastguard Worker    GL_EXT_compiled_vertex_array_bit,
128*61046927SAndroid Build Coastguard Worker    GL_EXT_convolution_bit,
129*61046927SAndroid Build Coastguard Worker    GL_EXT_copy_texture_bit,
130*61046927SAndroid Build Coastguard Worker    GL_EXT_cull_vertex_bit,
131*61046927SAndroid Build Coastguard Worker    GL_EXT_depth_bounds_test_bit,
132*61046927SAndroid Build Coastguard Worker    GL_EXT_draw_range_elements_bit,
133*61046927SAndroid Build Coastguard Worker    GL_EXT_fog_coord_bit,
134*61046927SAndroid Build Coastguard Worker    GL_EXT_framebuffer_blit_bit,
135*61046927SAndroid Build Coastguard Worker    GL_EXT_framebuffer_multisample_bit,
136*61046927SAndroid Build Coastguard Worker    GL_EXT_framebuffer_object_bit,
137*61046927SAndroid Build Coastguard Worker    GL_EXT_framebuffer_sRGB_bit,
138*61046927SAndroid Build Coastguard Worker    GL_EXT_multi_draw_arrays_bit,
139*61046927SAndroid Build Coastguard Worker    GL_EXT_packed_depth_stencil_bit,
140*61046927SAndroid Build Coastguard Worker    GL_EXT_packed_pixels_bit,
141*61046927SAndroid Build Coastguard Worker    GL_EXT_paletted_texture_bit,
142*61046927SAndroid Build Coastguard Worker    GL_EXT_pixel_buffer_object_bit,
143*61046927SAndroid Build Coastguard Worker    GL_EXT_polygon_offset_bit,
144*61046927SAndroid Build Coastguard Worker    GL_EXT_rescale_normal_bit,
145*61046927SAndroid Build Coastguard Worker    GL_EXT_secondary_color_bit,
146*61046927SAndroid Build Coastguard Worker    GL_EXT_separate_specular_color_bit,
147*61046927SAndroid Build Coastguard Worker    GL_EXT_shadow_funcs_bit,
148*61046927SAndroid Build Coastguard Worker    GL_EXT_shared_texture_palette_bit,
149*61046927SAndroid Build Coastguard Worker    GL_EXT_stencil_two_side_bit,
150*61046927SAndroid Build Coastguard Worker    GL_EXT_stencil_wrap_bit,
151*61046927SAndroid Build Coastguard Worker    GL_EXT_subtexture_bit,
152*61046927SAndroid Build Coastguard Worker    GL_EXT_texture_bit,
153*61046927SAndroid Build Coastguard Worker    GL_EXT_texture3D_bit,
154*61046927SAndroid Build Coastguard Worker    GL_EXT_texture_compression_dxt1_bit,
155*61046927SAndroid Build Coastguard Worker    GL_EXT_texture_compression_s3tc_bit,
156*61046927SAndroid Build Coastguard Worker    GL_EXT_texture_edge_clamp_bit,
157*61046927SAndroid Build Coastguard Worker    GL_EXT_texture_env_combine_bit,
158*61046927SAndroid Build Coastguard Worker    GL_EXT_texture_env_dot3_bit,
159*61046927SAndroid Build Coastguard Worker    GL_EXT_texture_integer_bit,
160*61046927SAndroid Build Coastguard Worker    GL_EXT_texture_lod_bit,
161*61046927SAndroid Build Coastguard Worker    GL_EXT_texture_lod_bias_bit,
162*61046927SAndroid Build Coastguard Worker    GL_EXT_texture_mirror_clamp_bit,
163*61046927SAndroid Build Coastguard Worker    GL_EXT_vertex_array_bit,
164*61046927SAndroid Build Coastguard Worker    GL_3DFX_texture_compression_FXT1_bit,
165*61046927SAndroid Build Coastguard Worker    GL_APPLE_packed_pixels_bit,
166*61046927SAndroid Build Coastguard Worker    GL_APPLE_ycbcr_422_bit,
167*61046927SAndroid Build Coastguard Worker    GL_ATI_text_fragment_shader_bit,
168*61046927SAndroid Build Coastguard Worker    GL_ATI_texture_env_combine3_bit,
169*61046927SAndroid Build Coastguard Worker    GL_ATI_texture_float_bit,
170*61046927SAndroid Build Coastguard Worker    GL_ATI_texture_mirror_once_bit,
171*61046927SAndroid Build Coastguard Worker    GL_HP_convolution_border_modes_bit,
172*61046927SAndroid Build Coastguard Worker    GL_HP_occlusion_test_bit,
173*61046927SAndroid Build Coastguard Worker    GL_IBM_cull_vertex_bit,
174*61046927SAndroid Build Coastguard Worker    GL_IBM_pixel_filter_hint_bit,
175*61046927SAndroid Build Coastguard Worker    GL_IBM_rasterpos_clip_bit,
176*61046927SAndroid Build Coastguard Worker    GL_IBM_texture_clamp_nodraw_bit,
177*61046927SAndroid Build Coastguard Worker    GL_INGR_interlace_read_bit,
178*61046927SAndroid Build Coastguard Worker    GL_MESA_pack_invert_bit,
179*61046927SAndroid Build Coastguard Worker    GL_MESA_ycbcr_texture_bit,
180*61046927SAndroid Build Coastguard Worker    GL_NV_blend_square_bit,
181*61046927SAndroid Build Coastguard Worker    GL_NV_copy_depth_to_color_bit,
182*61046927SAndroid Build Coastguard Worker    GL_NV_depth_clamp_bit,
183*61046927SAndroid Build Coastguard Worker    GL_NV_fog_distance_bit,
184*61046927SAndroid Build Coastguard Worker    GL_NV_fragment_program_bit,
185*61046927SAndroid Build Coastguard Worker    GL_NV_fragment_program_option_bit,
186*61046927SAndroid Build Coastguard Worker    GL_NV_fragment_program2_bit,
187*61046927SAndroid Build Coastguard Worker    GL_NV_light_max_exponent_bit,
188*61046927SAndroid Build Coastguard Worker    GL_NV_multisample_filter_hint_bit,
189*61046927SAndroid Build Coastguard Worker    GL_NV_packed_depth_stencil_bit,
190*61046927SAndroid Build Coastguard Worker    GL_NV_point_sprite_bit,
191*61046927SAndroid Build Coastguard Worker    GL_NV_texgen_reflection_bit,
192*61046927SAndroid Build Coastguard Worker    GL_NV_texture_compression_vtc_bit,
193*61046927SAndroid Build Coastguard Worker    GL_NV_texture_env_combine4_bit,
194*61046927SAndroid Build Coastguard Worker    GL_NV_vertex_program_bit,
195*61046927SAndroid Build Coastguard Worker    GL_NV_vertex_program1_1_bit,
196*61046927SAndroid Build Coastguard Worker    GL_NV_vertex_program2_bit,
197*61046927SAndroid Build Coastguard Worker    GL_NV_vertex_program2_option_bit,
198*61046927SAndroid Build Coastguard Worker    GL_NV_vertex_program3_bit,
199*61046927SAndroid Build Coastguard Worker    GL_OES_compressed_paletted_texture_bit,
200*61046927SAndroid Build Coastguard Worker    GL_OES_read_format_bit,
201*61046927SAndroid Build Coastguard Worker    GL_SGI_color_matrix_bit,
202*61046927SAndroid Build Coastguard Worker    GL_SGI_color_table_bit,
203*61046927SAndroid Build Coastguard Worker    GL_SGI_texture_color_table_bit,
204*61046927SAndroid Build Coastguard Worker    GL_SGIS_generate_mipmap_bit,
205*61046927SAndroid Build Coastguard Worker    GL_SGIS_multisample_bit,
206*61046927SAndroid Build Coastguard Worker    GL_SGIS_texture_lod_bit,
207*61046927SAndroid Build Coastguard Worker    GL_SGIX_blend_alpha_minmax_bit,
208*61046927SAndroid Build Coastguard Worker    GL_SGIX_clipmap_bit,
209*61046927SAndroid Build Coastguard Worker    GL_SGIX_depth_texture_bit,
210*61046927SAndroid Build Coastguard Worker    GL_SGIX_fog_offset_bit,
211*61046927SAndroid Build Coastguard Worker    GL_SGIX_shadow_bit,
212*61046927SAndroid Build Coastguard Worker    GL_SGIX_texture_coordinate_clamp_bit,
213*61046927SAndroid Build Coastguard Worker    GL_SGIX_texture_lod_bias_bit,
214*61046927SAndroid Build Coastguard Worker    GL_SGIX_texture_range_bit,
215*61046927SAndroid Build Coastguard Worker    GL_SGIX_texture_scale_bias_bit,
216*61046927SAndroid Build Coastguard Worker    GL_SGIX_vertex_preclip_bit,
217*61046927SAndroid Build Coastguard Worker    GL_SGIX_vertex_preclip_hint_bit,
218*61046927SAndroid Build Coastguard Worker    GL_SGIX_ycrcb_bit,
219*61046927SAndroid Build Coastguard Worker    GL_SUN_convolution_border_modes_bit,
220*61046927SAndroid Build Coastguard Worker    GL_SUN_slice_accum_bit,
221*61046927SAndroid Build Coastguard Worker 
222*61046927SAndroid Build Coastguard Worker    /* This *MUST* go here.  If it gets put after the duplicate values it will
223*61046927SAndroid Build Coastguard Worker     * get the value after the last duplicate.
224*61046927SAndroid Build Coastguard Worker     */
225*61046927SAndroid Build Coastguard Worker    __NUM_GL_EXTS,
226*61046927SAndroid Build Coastguard Worker 
227*61046927SAndroid Build Coastguard Worker 
228*61046927SAndroid Build Coastguard Worker    /* Alias extension bits.  These extensions exist in either vendor-specific
229*61046927SAndroid Build Coastguard Worker     * or EXT form and were later promoted to either EXT or ARB form.  In all
230*61046927SAndroid Build Coastguard Worker     * cases, the meaning (to GLX) is *exactly* the same.  That's why
231*61046927SAndroid Build Coastguard Worker     * EXT_texture_env_combine is *NOT* an alias of ARB_texture_env_combine and
232*61046927SAndroid Build Coastguard Worker     * EXT_texture_env_dot3 is *NOT* an alias of ARB_texture_env_dot3.  Be
233*61046927SAndroid Build Coastguard Worker     * careful!  When in doubt, src/mesa/main/extensions.c is a great reference.
234*61046927SAndroid Build Coastguard Worker     */
235*61046927SAndroid Build Coastguard Worker 
236*61046927SAndroid Build Coastguard Worker    GL_ATI_blend_equation_separate_bit = GL_EXT_blend_equation_separate_bit,
237*61046927SAndroid Build Coastguard Worker    GL_ATI_draw_buffers_bit = GL_ARB_draw_buffers_bit,
238*61046927SAndroid Build Coastguard Worker    GL_ATIX_texture_env_combine3_bit = GL_ATI_texture_env_combine3_bit,
239*61046927SAndroid Build Coastguard Worker    GL_EXT_point_parameters_bit = GL_ARB_point_parameters_bit,
240*61046927SAndroid Build Coastguard Worker    GL_EXT_texture_env_add_bit = GL_ARB_texture_env_add_bit,
241*61046927SAndroid Build Coastguard Worker    GL_EXT_texture_filter_anisotropic_bit = GL_ARB_texture_filter_anisotropic_bit,
242*61046927SAndroid Build Coastguard Worker    GL_EXT_texture_rectangle_bit = GL_ARB_texture_rectangle_bit,
243*61046927SAndroid Build Coastguard Worker    GL_IBM_texture_mirrored_repeat_bit = GL_ARB_texture_mirrored_repeat_bit,
244*61046927SAndroid Build Coastguard Worker    GL_INGR_blend_func_separate_bit = GL_EXT_blend_func_separate_bit,
245*61046927SAndroid Build Coastguard Worker    GL_MESA_window_pos_bit = GL_ARB_window_pos_bit,
246*61046927SAndroid Build Coastguard Worker    GL_NV_texture_rectangle_bit = GL_ARB_texture_rectangle_bit,
247*61046927SAndroid Build Coastguard Worker    GL_SGIS_texture_border_clamp_bit = GL_ARB_texture_border_clamp_bit,
248*61046927SAndroid Build Coastguard Worker    GL_SGIS_texture_edge_clamp_bit = GL_EXT_texture_edge_clamp_bit,
249*61046927SAndroid Build Coastguard Worker    GL_SGIX_shadow_ambient_bit = GL_ARB_shadow_ambient_bit,
250*61046927SAndroid Build Coastguard Worker    GL_SUN_multi_draw_arrays_bit = GL_EXT_multi_draw_arrays_bit
251*61046927SAndroid Build Coastguard Worker };
252*61046927SAndroid Build Coastguard Worker 
253*61046927SAndroid Build Coastguard Worker #define __GL_EXT_BYTES   ((__NUM_GL_EXTS + 7) / 8)
254*61046927SAndroid Build Coastguard Worker 
255*61046927SAndroid Build Coastguard Worker struct glx_screen;
256*61046927SAndroid Build Coastguard Worker struct glx_context;
257*61046927SAndroid Build Coastguard Worker 
258*61046927SAndroid Build Coastguard Worker extern GLboolean __glXExtensionBitIsEnabled(struct glx_screen *psc,
259*61046927SAndroid Build Coastguard Worker                                             unsigned bit);
260*61046927SAndroid Build Coastguard Worker extern const char *__glXGetClientExtensions(Display *dpy);
261*61046927SAndroid Build Coastguard Worker extern void __glXCalculateUsableExtensions(struct glx_screen *psc,
262*61046927SAndroid Build Coastguard Worker                                            GLboolean
263*61046927SAndroid Build Coastguard Worker                                            display_is_direct_capable);
264*61046927SAndroid Build Coastguard Worker 
265*61046927SAndroid Build Coastguard Worker extern void __glXParseExtensionOverride(struct glx_screen *psc,
266*61046927SAndroid Build Coastguard Worker                                         const char *override);
267*61046927SAndroid Build Coastguard Worker extern void __IndirectGlParseExtensionOverride(struct glx_screen *psc,
268*61046927SAndroid Build Coastguard Worker                                                const char *override);
269*61046927SAndroid Build Coastguard Worker extern void __glXCalculateUsableGLExtensions(struct glx_context *gc,
270*61046927SAndroid Build Coastguard Worker                                              const char *server_string);
271*61046927SAndroid Build Coastguard Worker extern char *__glXGetClientGLExtensionString(int screen);
272*61046927SAndroid Build Coastguard Worker 
273*61046927SAndroid Build Coastguard Worker extern GLboolean __glExtensionBitIsEnabled(struct glx_context *gc,
274*61046927SAndroid Build Coastguard Worker                                            unsigned bit);
275*61046927SAndroid Build Coastguard Worker 
276*61046927SAndroid Build Coastguard Worker extern void
277*61046927SAndroid Build Coastguard Worker __glXEnableDirectExtension(struct glx_screen *psc, const char *name);
278*61046927SAndroid Build Coastguard Worker 
279*61046927SAndroid Build Coastguard Worker 
280*61046927SAndroid Build Coastguard Worker /* GLX_ALIAS should be used for functions with a non-void return type.
281*61046927SAndroid Build Coastguard Worker    GLX_ALIAS_VOID is for functions with a void return type. */
282*61046927SAndroid Build Coastguard Worker # ifdef HAVE_FUNC_ATTRIBUTE_ALIAS
283*61046927SAndroid Build Coastguard Worker #  define GLX_ALIAS(return_type, real_func, proto_args, args, aliased_func) \
284*61046927SAndroid Build Coastguard Worker    return_type  real_func  proto_args                                   \
285*61046927SAndroid Build Coastguard Worker    __attribute__ ((alias( # aliased_func ) ));
286*61046927SAndroid Build Coastguard Worker #  define GLX_ALIAS_VOID(real_func, proto_args, args, aliased_func) \
287*61046927SAndroid Build Coastguard Worker    GLX_ALIAS(void, real_func, proto_args, args, aliased_func)
288*61046927SAndroid Build Coastguard Worker # else
289*61046927SAndroid Build Coastguard Worker #  define GLX_ALIAS(return_type, real_func, proto_args, args, aliased_func) \
290*61046927SAndroid Build Coastguard Worker    return_type  real_func  proto_args                                   \
291*61046927SAndroid Build Coastguard Worker    { return aliased_func args ; }
292*61046927SAndroid Build Coastguard Worker #  define GLX_ALIAS_VOID(real_func, proto_args, args, aliased_func) \
293*61046927SAndroid Build Coastguard Worker    void  real_func  proto_args                                      \
294*61046927SAndroid Build Coastguard Worker    { aliased_func args ; }
295*61046927SAndroid Build Coastguard Worker # endif /* HAVE_FUNC_ATTRIBUTE_ALIAS */
296*61046927SAndroid Build Coastguard Worker 
297*61046927SAndroid Build Coastguard Worker #ifdef __cplusplus
298*61046927SAndroid Build Coastguard Worker }
299*61046927SAndroid Build Coastguard Worker #endif
300*61046927SAndroid Build Coastguard Worker 
301*61046927SAndroid Build Coastguard Worker #endif /* GLX_GLXEXTENSIONS_H */
302