mesa: Add ARB_arrays_of_arrays
authorTimothy Arceri <t_arceri@yahoo.com.au>
Thu, 23 Jan 2014 12:15:29 +0000 (23:15 +1100)
committerTimothy Arceri <t_arceri@yahoo.com.au>
Thu, 23 Jan 2014 12:15:29 +0000 (23:15 +1100)
Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/glsl/glcpp/glcpp-parse.y
src/mesa/main/extensions.c
src/mesa/main/mtypes.h

index bbe8a06f0a833c29450eeed19632e4f0a117fd94..e2415213a8100bdfa20f241134f166046a14d748 100644 (file)
@@ -1222,6 +1222,9 @@ glcpp_parser_create (const struct gl_extensions *extensions, int api)
                 add_builtin_define(parser, "GL_EXT_texture_array", 1);
              }
 
+              if (extensions->ARB_arrays_of_arrays)
+                 add_builtin_define(parser, "GL_ARB_arrays_of_arrays", 1);
+
              if (extensions->ARB_fragment_coord_conventions)
                 add_builtin_define(parser, "GL_ARB_fragment_coord_conventions",
                                    1);
index c2c9c0930d34ba3f920f954b61be99c4dfb9a63c..0676f1e3df045db4faa23d3edb71b27454dae327 100644 (file)
@@ -80,6 +80,7 @@ static const struct extension extension_table[] = {
    /* ARB Extensions */
    { "GL_ARB_ES2_compatibility",                   o(ARB_ES2_compatibility),                   GL,             2009 },
    { "GL_ARB_ES3_compatibility",                   o(ARB_ES3_compatibility),                   GL,             2012 },
+   { "GL_ARB_arrays_of_arrays",                    o(ARB_arrays_of_arrays),                    GL,             2012 },
    { "GL_ARB_base_instance",                       o(ARB_base_instance),                       GL,             2011 },
    { "GL_ARB_blend_func_extended",                 o(ARB_blend_func_extended),                 GL,             2009 },
    { "GL_ARB_clear_buffer_object",                 o(dummy_true),                              GL,             2012 },
index 3dd967884c4edda16ff5f3656c5bdb0133cf2b45..679e1a3733cda6f1c9d70364f5b01f8dcbcfa7bd 100644 (file)
@@ -3380,6 +3380,7 @@ struct gl_extensions
    GLboolean ANGLE_texture_compression_dxt;
    GLboolean ARB_ES2_compatibility;
    GLboolean ARB_ES3_compatibility;
+   GLboolean ARB_arrays_of_arrays;
    GLboolean ARB_base_instance;
    GLboolean ARB_blend_func_extended;
    GLboolean ARB_color_buffer_float;