glcpp: Make sure GL_AMD_shader_trinary_minmax is defined
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 24 Jan 2014 21:28:24 +0000 (13:28 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 27 Jan 2014 21:28:24 +0000 (14:28 -0700)
The define was only available if
gl_extensions::AMD_shader_trinary_minmax was set, but no driver set it.
Since the extension is advertised by default, remove that field too.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Cc: Maxence Le Doré <maxence.ledore@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/glsl/glcpp/glcpp-parse.y
src/mesa/main/mtypes.h

index 184e5c23770ae3cf458325b6a2dd45d13dc48848..8b486d21805949ade0cf975989bc574ab3c27356 100644 (file)
@@ -2043,6 +2043,8 @@ _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_texture_rectangle", 1);
+           add_builtin_define(parser, "GL_AMD_shader_trinary_minmax", 1);
+
 
           if (extensions != NULL) {
              if (extensions->EXT_texture_array)
@@ -2108,9 +2110,6 @@ _glcpp_parser_handle_version_declaration(glcpp_parser_t *parser, intmax_t versio
              if (extensions->ARB_shader_atomic_counters)
                 add_builtin_define(parser, "GL_ARB_shader_atomic_counters", 1);
 
-             if (extensions->AMD_shader_trinary_minmax)
-                add_builtin_define(parser, "GL_AMD_shader_trinary_minmax", 1);
-
              if (extensions->ARB_viewport_array)
                 add_builtin_define(parser, "GL_ARB_viewport_array", 1);
           }
index c4f22bce3f01b98b85738f0ecc89902225421e86..ac0dd780858d1d219aa407d17bc8d766b0dcd91f 100644 (file)
@@ -3489,7 +3489,6 @@ struct gl_extensions
    /* vendor extensions */
    GLboolean AMD_performance_monitor;
    GLboolean AMD_seamless_cubemap_per_texture;
-   GLboolean AMD_shader_trinary_minmax;
    GLboolean AMD_vertex_shader_layer;
    GLboolean APPLE_object_purgeable;
    GLboolean ATI_envmap_bumpmap;