glsl: Don't allow redefining builtin functions on GLSL 1.00.
authorEric Anholt <eric@anholt.net>
Mon, 1 May 2017 23:49:27 +0000 (16:49 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 8 May 2017 19:15:49 +0000 (12:15 -0700)
commit0ffa06a19badf2df0f02e02477a7d2904a53a6a8
tree449781739c8ffb0e8fcba9dc16bde3cb530fe58e
parent79da0ed2fcb8c88253fe2c9036f17e29c1f319dc
glsl: Don't allow redefining builtin functions on GLSL 1.00.

The spec text cited above says you can't, but only the GLSL 3.00 (redefine
or overload) case was implemented.

Fixes dEQP scoping.invalid.redefine_builtin_fragment/vertex.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Tested-by: Matt Turner <mattst88@gmail.com>
src/compiler/glsl/ast_to_hir.cpp