glsl: Apply the link error conditions to GL_ARB_fragment_coord_conventions
authorAnuj Phogat <anuj.phogat@gmail.com>
Mon, 10 Feb 2014 22:12:40 +0000 (14:12 -0800)
committerAnuj Phogat <anuj.phogat@gmail.com>
Thu, 1 May 2014 17:58:39 +0000 (10:58 -0700)
commit9bcb0a85321c128b6e5ff8fc6694c2eff613e65a
tree8e9b96c46f0d1b97d73915ba3ac86293ccff3edf
parent35f11e85cbe82b4bb77535e84e5515a5c49f67a6
glsl: Apply the link error conditions to GL_ARB_fragment_coord_conventions

Link error conditions added in previous patch are equally applicable
to GL_ARB_fragment_coord_conventions implementation. Extension's spec
says:
   "If gl_FragCoord is redeclared in any fragment shader in a program,
    it must be redeclared in all the fragment shaders in that program
    that have a static use of gl_FragCoord. All redeclarations of
    gl_FragCoord in all fragment shaders in a single program must have
    the same set of qualifiers."

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/glsl_parser_extras.cpp
src/glsl/linker.cpp
src/mesa/main/mtypes.h