glsl: Parse 'layout' as a token with advanced blending or bindless
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 19 Feb 2018 17:35:46 +0000 (09:35 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 22 Feb 2018 01:50:57 +0000 (17:50 -0800)
commit183ce5e629ee973d72a3e8b3361aa2de196cc203
tree8f38dd70607da94f1f7e260d6317c2a46977f389
parentc7e22483febd2f21452f8dff8f987c998f9a75f5
glsl: Parse 'layout' as a token with advanced blending or bindless

Both KHR_blend_equation_advanced and ARB_bindless_texture provide
layout qualifiers, and are exposed in compatibility contexts.  We
need to parse the layout qualifier as a token in order for those
to work, but forgot to extend this check.

ARB_shader_image_load_store would need a similar treatment, but we
don't expose that in legacy OpenGL contexts.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105161
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/compiler/glsl/glsl_lexer.ll