Mesa (master): mesa: Add ARB_arrays_of_arrays

Timothy Arceri tarceri at kemper.freedesktop.org
Thu Jan 23 12:45:48 UTC 2014


Module: Mesa
Branch: master
Commit: 72288e0c7b7ec769da71fbaf124ec4ee8be7577b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=72288e0c7b7ec769da71fbaf124ec4ee8be7577b

Author: Timothy Arceri <t_arceri at yahoo.com.au>
Date:   Thu Jan 23 23:15:29 2014 +1100

mesa: Add ARB_arrays_of_arrays

Signed-off-by: Timothy Arceri <t_arceri at yahoo.com.au>
Reviewed-by: Paul Berry <stereotype441 at gmail.com>

---

 src/glsl/glcpp/glcpp-parse.y |    3 +++
 src/mesa/main/extensions.c   |    1 +
 src/mesa/main/mtypes.h       |    1 +
 3 files changed, 5 insertions(+)

diff --git a/src/glsl/glcpp/glcpp-parse.y b/src/glsl/glcpp/glcpp-parse.y
index bbe8a06..e241521 100644
--- a/src/glsl/glcpp/glcpp-parse.y
+++ b/src/glsl/glcpp/glcpp-parse.y
@@ -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);
diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c
index c2c9c09..0676f1e 100644
--- a/src/mesa/main/extensions.c
+++ b/src/mesa/main/extensions.c
@@ -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 },
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index 3dd9678..679e1a3 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -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;




More information about the mesa-commit mailing list