glsl: add the tessellation extension to the list for the "layout" qualifier
authorMarek Olšák <marek.olsak@amd.com>
Mon, 15 Jun 2015 23:32:28 +0000 (01:32 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 22 Jul 2015 22:59:27 +0000 (00:59 +0200)
commit2abbe941e1bfaf494eb739b9fb81503736298f14
treee3efbe4599fae877503e1f3c10eaf71daa1c51f0
parentfb800b3dcd32ddb6f57143b46105d677eb01da80
glsl: add the tessellation extension to the list for the "layout" qualifier

This is technically not needed, but it makes the compiler return a better
error message if tessellation is used with GLSL < 1.50.

Instead of:
    error: syntax error, unexpected NEW_IDENTIFIER, expecting $end
It returns:
    error: #version 150 layout qualifier `triangles' used

And the tessellation spec says:
    OpenGL 3.2 and GLSL 1.50 are required.
So it makes perfect sense.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/glsl_lexer.ll