glsl: Update the #line behaviour on GLSL 3.30+ and GLSL ES+
authorAntia Puentes <apuentes@igalia.com>
Tue, 17 Mar 2015 18:12:23 +0000 (19:12 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Mon, 6 Apr 2015 06:55:10 +0000 (08:55 +0200)
commit490621f0f2814ff1713c74f030acaff3f19cf8fb
tree2244eab930d26afc427b501ad7894f1ce77ccfe0
parentc0a7014601ca93d30ba9bf1ec3c6d04da904d503
glsl: Update the #line behaviour on GLSL 3.30+ and GLSL ES+

From GLSL 3.30 and GLSL ES 1.00 on, after processing the line
directive (including its new-line), the implementation should
behave as if it is compiling at the line number passed as
argument. In previous versions, it behaved as if compiling
at the passed line number + 1.

Partially fixes https://bugs.freedesktop.org/show_bug.cgi?id=88815

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