glsl: enable noperspective|flat|centroid for EXT_gpu_shader4
authorChris Forbes <chrisf@ijw.co.nz>
Thu, 18 Jul 2013 10:43:26 +0000 (22:43 +1200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 25 Apr 2019 00:45:15 +0000 (20:45 -0400)
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/compiler/glsl/glsl_lexer.ll

index 224418ed7cebb606ca4f3256dce1e5e02143e8f5..f1426a9c486c736751420d68e25c27be5001e20f 100644 (file)
@@ -387,11 +387,11 @@ inout             return INOUT_TOK;
 uniform                return UNIFORM;
 buffer         KEYWORD_WITH_ALT(0, 0, 430, 310, yyextra->ARB_shader_storage_buffer_object_enable, BUFFER);
 varying                DEPRECATED_ES_KEYWORD(VARYING);
-centroid       KEYWORD(120, 300, 120, 300, CENTROID);
+centroid       KEYWORD_WITH_ALT(120, 300, 120, 300, yyextra->EXT_gpu_shader4_enable, CENTROID);
 invariant      KEYWORD(120, 100, 120, 100, INVARIANT);
-flat           KEYWORD(130, 100, 130, 300, FLAT);
+flat           KEYWORD_WITH_ALT(130, 100, 130, 300, yyextra->EXT_gpu_shader4_enable, FLAT);
 smooth         KEYWORD(130, 300, 130, 300, SMOOTH);
-noperspective  KEYWORD(130, 300, 130, 0, NOPERSPECTIVE);
+noperspective  KEYWORD_WITH_ALT(130, 300, 130, 0, yyextra->EXT_gpu_shader4_enable, NOPERSPECTIVE);
 patch          KEYWORD_WITH_ALT(0, 300, 400, 320, yyextra->has_tessellation_shader(), PATCH);
 
 sampler1D      DEPRECATED_ES_TYPE(glsl_type::sampler1D_type);