glsl: Extension tracking for EXT_shader_samples_indentical
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 17 Nov 2015 23:36:15 +0000 (15:36 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 20 Nov 2015 04:17:16 +0000 (20:17 -0800)
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
src/glsl/glcpp/glcpp-parse.y
src/glsl/glsl_parser_extras.cpp
src/glsl/glsl_parser_extras.h

index ab5ec8450b91aed56971927c11a94d5e18a67865..2fd4cf04079a6f7acefa60a01d8e6929652250ba 100644 (file)
@@ -2512,6 +2512,9 @@ _glcpp_parser_handle_version_declaration(glcpp_parser_t *parser, intmax_t versio
        if (extensions != NULL) {
           if (extensions->EXT_shader_integer_mix)
              add_builtin_define(parser, "GL_EXT_shader_integer_mix", 1);
+
+          if (extensions->EXT_shader_samples_identical)
+             add_builtin_define(parser, "GL_EXT_shader_samples_identical", 1);
        }
 
        if (version >= 150)
index 8fb05fae4c143b7a5564ab7197df40b94a11350a..c54dcfdab7bc8197fea326497f27b30d14637521 100644 (file)
@@ -650,6 +650,7 @@ static const _mesa_glsl_extension _mesa_glsl_supported_extensions[] = {
    EXT(EXT_draw_buffers,               false,  true,     dummy_true),
    EXT(EXT_separate_shader_objects,    false, true,      dummy_true),
    EXT(EXT_shader_integer_mix,         true,  true,      EXT_shader_integer_mix),
+   EXT(EXT_shader_samples_identical,   true,  true,      EXT_shader_samples_identical),
    EXT(EXT_texture_array,              true,  false,     EXT_texture_array),
 };
 
index 17f8490b8daa6e2973177059d1cc9d1ccf2236b5..17ff0b5af79b2bd9f9c1eeb6cc43515d3e3fa4d6 100644 (file)
@@ -606,6 +606,8 @@ struct _mesa_glsl_parse_state {
    bool EXT_separate_shader_objects_warn;
    bool EXT_shader_integer_mix_enable;
    bool EXT_shader_integer_mix_warn;
+   bool EXT_shader_samples_identical_enable;
+   bool EXT_shader_samples_identical_warn;
    bool EXT_texture_array_enable;
    bool EXT_texture_array_warn;
    /*@}*/