glsl_to_tgsi: Use the GLSL compiler's new remove-output-reads pass.
authorVincent Lejeune <vljn@ovi.com>
Mon, 2 Jan 2012 19:17:38 +0000 (20:17 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 6 Jan 2012 13:36:52 +0000 (13:36 +0000)
commit10937e651222501c0e9f4f44e6b842c261e2edfb
tree56ce681a4831168d974754d8ab7bcf301e18ae94
parent6d4b35c03619148cde89bc5eedaac3288001edd3
glsl_to_tgsi: Use the GLSL compiler's new remove-output-reads pass.

The existing glsl_to_tgsi::remove_output_read pass did not work properly
when indirect addressing was involved; this commit replaces it with a
lowering pass that occurs before TGSI code generation.

Fixes varying-array related piglit tests.

Signed-off-by: Vincent Lejeune <vljn@ovi.com>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp