From: Ian Romanick Date: Sat, 19 Jun 2010 01:36:51 +0000 (-0700) Subject: glsl_lexer: Handle interpolation qualifiers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8655b7e78a40f7f64b744727071b946c0da75217;p=mesa.git glsl_lexer: Handle interpolation qualifiers --- diff --git a/glsl_lexer.lpp b/glsl_lexer.lpp index 34ca229de8d..5cea534bafd 100644 --- a/glsl_lexer.lpp +++ b/glsl_lexer.lpp @@ -159,6 +159,31 @@ varying return VARYING; centroid return CENTROID; invariant return INVARIANT; +flat { + if (yyextra->language_version >= 130) { + return FLAT; + } else { + yylval->identifier = strdup(yytext); + return IDENTIFIER; + } + } +smooth { + if (yyextra->language_version >= 130) { + return SMOOTH; + } else { + yylval->identifier = strdup(yytext); + return IDENTIFIER; + } + } +noperspective { + if (yyextra->language_version >= 130) { + return NOPERSPECTIVE; + } else { + yylval->identifier = strdup(yytext); + return IDENTIFIER; + } + } + sampler1D return SAMPLER1D; sampler2D return SAMPLER2D; sampler3D return SAMPLER3D;