glsl: Restrict func redeclarations (not just redefinitions) on GLSL 1.00.
authorEric Anholt <eric@anholt.net>
Mon, 1 May 2017 23:42:03 +0000 (16:42 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 8 May 2017 19:15:49 +0000 (12:15 -0700)
commit79da0ed2fcb8c88253fe2c9036f17e29c1f319dc
treefce97bfd981a1a7374df4eca96afb22b4fca4f3d
parente5ade7db73ce209f4f23f8c9d1272575fe990b14
glsl: Restrict func redeclarations (not just redefinitions) on GLSL 1.00.

Fixes DEQP's scoping.invalid.redeclare_function_fragment/vertex.

v2: Fix accidental rejection of prototype+decl.

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