a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync/*
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * (C) Copyright IBM Corporation 2002-2006
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * All Rights Reserved.
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync *
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * Permission is hereby granted, free of charge, to any person obtaining a
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * copy of this software and associated documentation files (the "Software"),
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * to deal in the Software without restriction, including without limitation
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * on the rights to use, copy, modify, merge, publish, distribute, sub
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * license, and/or sell copies of the Software, and to permit persons to whom
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * the Software is furnished to do so, subject to the following conditions:
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync *
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * The above copyright notice and this permission notice (including the next
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * paragraph) shall be included in all copies or substantial portions of the
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * Software.
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync *
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * THE COPYRIGHT HOLDERS AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * USE OR OTHER DEALINGS IN THE SOFTWARE.
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync */
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync/**
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * \file extension_string.h
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * Routines to manage the GLX extension string and GLX version for AIGLX
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * drivers. This code is loosely based on src/glx/x11/glxextensions.c from
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * Mesa.
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync *
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * \author Ian Romanick <idr@us.ibm.com>
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync */
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync#ifndef GLX_EXTENSION_STRING_H
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync#define GLX_EXTENSION_STRING_H
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncenum {
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync/* GLX_ARB_get_proc_address is implemented on the client. */
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync ARB_create_context_bit = 0,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync ARB_create_context_profile_bit,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync ARB_create_context_robustness_bit,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync ARB_fbconfig_float_bit,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync ARB_framebuffer_sRGB_bit,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync ARB_multisample_bit,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync EXT_create_context_es2_profile_bit,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync EXT_import_context_bit,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync EXT_texture_from_pixmap_bit,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync EXT_visual_info_bit,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync EXT_visual_rating_bit,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync MESA_copy_sub_buffer_bit,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync OML_swap_method_bit,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync SGI_make_current_read_bit,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync SGI_swap_control_bit,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync SGI_video_sync_bit,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync SGIS_multisample_bit,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync SGIX_fbconfig_bit,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync SGIX_pbuffer_bit,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync SGIX_visual_select_group_bit,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync INTEL_swap_event_bit,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync __NUM_GLX_EXTS,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync};
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync/* For extensions which have identical ARB and EXT implementation
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * in GLX area, use one enabling bit for both. */
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync#define EXT_framebuffer_sRGB_bit ARB_framebuffer_sRGB_bit
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync#define __GLX_EXT_BYTES ((__NUM_GLX_EXTS + 7) / 8)
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern int __glXGetExtensionString(const unsigned char *enable_bits,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync char *buffer);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern void __glXEnableExtension(unsigned char *enable_bits, const char *ext);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern void __glXInitExtensionEnableBits(unsigned char *enable_bits);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync#endif /* GLX_EXTENSION_STRING_H */