glsl: Allow layout token for EXT_shader_framebuffer_fetch_non_coherent.
authorFrancisco Jerez <currojerez@riseup.net>
Mon, 12 Feb 2018 23:26:45 +0000 (15:26 -0800)
committerFrancisco Jerez <currojerez@riseup.net>
Sat, 24 Feb 2018 23:28:36 +0000 (15:28 -0800)
EXT_shader_framebuffer_fetch_non_coherent requires layout qualifiers
even on GL(ES) 2.

Reviewed-by: Plamena Manolova <plamena.manolova@intel.com>
src/compiler/glsl/glsl_lexer.ll

index ed7a80a2bb1a33ce2e294dd504e9d9896a156a3b..b7cf10018de2d2cbf4d67111ff77bbf809832846 100644 (file)
@@ -502,7 +502,8 @@ layout              {
                      || yyextra->ARB_fragment_coord_conventions_enable
                       || yyextra->ARB_shading_language_420pack_enable
                       || yyextra->ARB_compute_shader_enable
-                      || yyextra->ARB_tessellation_shader_enable) {
+                      || yyextra->ARB_tessellation_shader_enable
+                      || yyextra->EXT_shader_framebuffer_fetch_non_coherent_enable) {
                      return LAYOUT_TOK;
                   } else {
                      return classify_identifier(yyextra, yytext, yyleng, yylval);