glx: Add tracking for GLX_ARB_create_context and GLX_ARB_create_context_profile

The formatting of the extension data table was mangled by indent.
This patch also undoes that and adds approripate control comments so
that indent won't do it again.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Christopher James Halse Rogers <christopher.halse.rogers@canonical.com>
This commit is contained in:
Ian Romanick 2011-12-05 13:48:19 -08:00
parent 96d74138b1
commit 0a9226376c
2 changed files with 22 additions and 16 deletions

View File

@ -67,23 +67,27 @@ struct extension_info {
static const struct extension_info known_glx_extensions[] = { static const struct extension_info known_glx_extensions[] = {
/* GLX_ARB_get_proc_address is implemented on the client. */ /* GLX_ARB_get_proc_address is implemented on the client. */
{GLX(ARB_multisample), VER(1, 4), Y,}, /* *INDENT-OFF* */
{ GLX(ARB_create_context), VER(0,0), N, },
{ GLX(ARB_create_context_profile), VER(0,0), N, },
{ GLX(ARB_multisample), VER(1,4), Y, },
{GLX(EXT_import_context), VER(0, 0), Y,}, { GLX(EXT_import_context), VER(0,0), Y, },
{GLX(EXT_texture_from_pixmap), VER(0, 0), Y,}, { GLX(EXT_texture_from_pixmap), VER(0,0), Y, },
{GLX(EXT_visual_info), VER(0, 0), Y,}, { GLX(EXT_visual_info), VER(0,0), Y, },
{GLX(EXT_visual_rating), VER(0, 0), Y,}, { GLX(EXT_visual_rating), VER(0,0), Y, },
{GLX(MESA_copy_sub_buffer), VER(0, 0), N,}, { GLX(MESA_copy_sub_buffer), VER(0,0), N, },
{GLX(OML_swap_method), VER(0, 0), Y,}, { GLX(OML_swap_method), VER(0,0), Y, },
{GLX(SGI_make_current_read), VER(1, 3), N,}, { GLX(SGI_make_current_read), VER(1,3), N, },
{GLX(SGI_swap_control), VER(0, 0), N,}, { GLX(SGI_swap_control), VER(0,0), N, },
{GLX(SGIS_multisample), VER(0, 0), Y,}, { GLX(SGIS_multisample), VER(0,0), Y, },
{GLX(SGIX_fbconfig), VER(1, 3), Y,}, { GLX(SGIX_fbconfig), VER(1,3), Y, },
{GLX(SGIX_pbuffer), VER(1, 3), Y,}, { GLX(SGIX_pbuffer), VER(1,3), Y, },
{GLX(SGIX_visual_select_group), VER(0, 0), Y,}, { GLX(SGIX_visual_select_group), VER(0,0), Y, },
{GLX(INTEL_swap_event), VER(1, 4), N,}, { GLX(INTEL_swap_event), VER(1,4), N, },
{NULL} { NULL }
/* *INDENT-ON* */
}; };
/** /**

View File

@ -36,7 +36,9 @@
enum { enum {
/* GLX_ARB_get_proc_address is implemented on the client. */ /* GLX_ARB_get_proc_address is implemented on the client. */
ARB_multisample_bit = 0, ARB_create_context_bit = 0,
ARB_create_context_profile_bit,
ARB_multisample_bit,
EXT_import_context_bit, EXT_import_context_bit,
EXT_texture_from_pixmap_bit, EXT_texture_from_pixmap_bit,
EXT_visual_info_bit, EXT_visual_info_bit,