glsl: Add an internal-error catch-all rule

Graphics / Mesa 3D Graphics Library / Mesa - Carl Worth [cworth.org] - 29 July 2014 17:11 UTC

This is to avoid the default, silent flex rule which simply prints the character to stdout.

For the following Khronos GLES3 conformance tests:

invalid_char_in_name_vertex invalid_char_in_name_fragment

With this commit, these tests now report Pass where they previously reported Fail, but Mesa isn't behaving correctly yet. It's now reporting the internal error where what is really desired is a syntax error.

f196eb2 glsl: Add an internal-error catch-all rule
src/glsl/glsl_lexer.ll | 13 +++++++++++++
1 file changed, 13 insertions(+)

Upstream: cgit.freedesktop.org


  • Share