From: Chris Forbes Date: Thu, 18 Jul 2013 10:43:26 +0000 (+1200) Subject: glsl: enable noperspective|flat|centroid for EXT_gpu_shader4 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2d8f4fff492ea109ba5164358b11c43076378cdd;p=mesa.git glsl: enable noperspective|flat|centroid for EXT_gpu_shader4 Reviewed-by: Timothy Arceri Reviewed-by: Ian Romanick Tested-by: Dieter Nützel Reviewed-by: Eric Anholt --- diff --git a/src/compiler/glsl/glsl_lexer.ll b/src/compiler/glsl/glsl_lexer.ll index 224418ed7ce..f1426a9c486 100644 --- a/src/compiler/glsl/glsl_lexer.ll +++ b/src/compiler/glsl/glsl_lexer.ll @@ -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);