glsl: invalidate float suffixes for GLSL 1.10 and GLSL ES 1.00
authorLars Hamre <chemecse@gmail.com>
Tue, 29 Mar 2016 00:42:14 +0000 (20:42 -0400)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 30 Mar 2016 04:26:34 +0000 (21:26 -0700)
commit6773128bbf8703663ed1a4d6c1c3308b3c002a35
treee4a3b9c5c92cc0a169a164d8b494f0b51f249466
parent2d3b8aefda1df66ef43c11c66e95ecb9a19c9137
glsl: invalidate float suffixes for GLSL 1.10 and GLSL ES 1.00

Float suffixes are not allowed in GLSL 1.10 nor GLSL ES 1.00.

Fixes the following piglit tests:
tests/spec/glsl-1.10/compiler/literals/invalid-float-suffix-capital-f.vert
tests/spec/glsl-1.10/compiler/literals/invalid-float-suffix-f.vert`

v2: modify error message
v3: parse the float instead of returning an ERROR_TOK
v4: (by Ken) Change to is_version(120, 300) to avoid breaking ES3
    shaders; update commit message accordingly.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=81585
Signed-off-by: Lars Hamre <chemecse@gmail.com>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/glsl/glsl_lexer.ll