glsl: allow usage of the keyword buffer before GLSL 430 / ESSL 310
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 9 Apr 2016 17:11:42 +0000 (13:11 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 10 Apr 2016 00:41:54 +0000 (20:41 -0400)
commit9b5bd20eb2d09e1ec2319b55c83ad7f28b6fefee
tree5b50b1ed8b2eac39d1c5c39506958a04b768b6b8
parentcdb6fa91fa79c0c9a796730e9ecae320bebdb825
glsl: allow usage of the keyword buffer before GLSL 430 / ESSL 310

The GLSL 4.20 and ESSL 3.00 specs don't list 'buffer' as a reserved
keyword. Make the parser ignore it unless GLSL 4.30 / ESSL 3.10 are
used, or ARB_shader_storage_buffer_objects is enabled.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Cc: mesa-stable@lists.freedesktop.org
src/compiler/glsl/glsl_lexer.ll