mesa: add ARB_enhanced_layouts
authorTimothy Arceri <timothy.arceri@collabora.com>
Sun, 4 Oct 2015 13:01:45 +0000 (00:01 +1100)
committerTimothy Arceri <t_arceri@yahoo.com.au>
Wed, 11 Nov 2015 23:18:08 +0000 (10:18 +1100)
Reviewed-by: Emil Velikov <emil.velikov@collabora.co.uk>
src/glsl/glcpp/glcpp-parse.y
src/glsl/glsl_parser_extras.cpp
src/glsl/glsl_parser_extras.h
src/mesa/main/extensions.c
src/mesa/main/mtypes.h

index 4acccf740651749c5f180556d6e23b2a26f0f293..6aa7abec00e9047fc7464794ab382fccb24c72b3 100644 (file)
@@ -2387,6 +2387,7 @@ _glcpp_parser_handle_version_declaration(glcpp_parser_t *parser, intmax_t versio
           }
        } else {
           add_builtin_define(parser, "GL_ARB_draw_buffers", 1);
+           add_builtin_define(parser, "GL_ARB_enhanced_layouts", 1);
            add_builtin_define(parser, "GL_ARB_separate_shader_objects", 1);
           add_builtin_define(parser, "GL_ARB_texture_rectangle", 1);
            add_builtin_define(parser, "GL_AMD_shader_trinary_minmax", 1);
index 14cb9fc78b767534421e9c32af56b46df72868f5..2dba7d9f48a87d56b79c0ff4133019c44542f86e 100644 (file)
@@ -594,6 +594,7 @@ static const _mesa_glsl_extension _mesa_glsl_supported_extensions[] = {
    EXT(ARB_derivative_control,           true,  false,     ARB_derivative_control),
    EXT(ARB_draw_buffers,                 true,  false,     dummy_true),
    EXT(ARB_draw_instanced,               true,  false,     ARB_draw_instanced),
+   EXT(ARB_enhanced_layouts,             true,  false,     ARB_enhanced_layouts),
    EXT(ARB_explicit_attrib_location,     true,  false,     ARB_explicit_attrib_location),
    EXT(ARB_explicit_uniform_location,    true,  false,     ARB_explicit_uniform_location),
    EXT(ARB_fragment_coord_conventions,   true,  false,     ARB_fragment_coord_conventions),
index b54c535914986bef138c07aa3cc62321d5a03716..684b917afa00bba6a43570fa0e28da6b549173ba 100644 (file)
@@ -499,6 +499,8 @@ struct _mesa_glsl_parse_state {
    bool ARB_draw_buffers_warn;
    bool ARB_draw_instanced_enable;
    bool ARB_draw_instanced_warn;
+   bool ARB_enhanced_layouts_enable;
+   bool ARB_enhanced_layouts_warn;
    bool ARB_explicit_attrib_location_enable;
    bool ARB_explicit_attrib_location_warn;
    bool ARB_explicit_uniform_location_enable;
index bdc68175bf23abd8a32e08f104b8387efd55fcb4..1facad1fa7ead524ee140bee6dbbd2d89f77317c 100644 (file)
@@ -111,6 +111,7 @@ static const struct extension extension_table[] = {
    { "GL_ARB_draw_elements_base_vertex",           o(ARB_draw_elements_base_vertex),           GL,             2009 },
    { "GL_ARB_draw_indirect",                       o(ARB_draw_indirect),                       GLC,            2010 },
    { "GL_ARB_draw_instanced",                      o(ARB_draw_instanced),                      GL,             2008 },
+   { "GL_ARB_enhanced_layouts",                    o(ARB_enhanced_layouts),                    GLC,            2013 },
    { "GL_ARB_explicit_attrib_location",            o(ARB_explicit_attrib_location),            GL,             2009 },
    { "GL_ARB_explicit_uniform_location",           o(ARB_explicit_uniform_location),           GL,             2012 },
    { "GL_ARB_fragment_coord_conventions",          o(ARB_fragment_coord_conventions),          GL,             2009 },
index 777a1eecd12b6c07fe613ba4f3cf6c56c3235c52..8de9c773b9f3928015f236374267b9b57874c1b9 100644 (file)
@@ -3678,6 +3678,7 @@ struct gl_extensions
    GLboolean ARB_fragment_shader;
    GLboolean ARB_framebuffer_no_attachments;
    GLboolean ARB_framebuffer_object;
+   GLboolean ARB_enhanced_layouts;
    GLboolean ARB_explicit_attrib_location;
    GLboolean ARB_explicit_uniform_location;
    GLboolean ARB_geometry_shader4;