glsl: Properly throw compile-time errors for conflicting FS output writes.
authorEric Anholt <eric@anholt.net>
Fri, 30 Mar 2012 00:29:20 +0000 (17:29 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 19 Apr 2012 23:33:45 +0000 (16:33 -0700)
commit4b2a4cb7c2131c3c31e3d44a0d8838ef45f270e7
treecee0ae1b832e1bca1140e55003739c0f4f56f5ff
parentf2475ca424f7e001be50f64dafa5700f6603d684
glsl: Properly throw compile-time errors for conflicting FS output writes.

We were checking for these at link time previously, which is not as
early as mandated, and would actually fail to detect conflicting
writes if dead code removal removed some writes.

Fixes failures in piglit
glsl-*/compiler/fragment-outputs/write-gl_Frag*

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