glsl: Add a lowering pass to move discards out of if-statements.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 25 Nov 2010 09:09:26 +0000 (01:09 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 1 Dec 2010 19:52:43 +0000 (11:52 -0800)
commit940df10100d740ef27fa39026fd51c3199ed3d62
treee98326e594fb6dc9fcf7feef37e769e08ac61d1e
parent9a1d063c6d679c2155f5eb80f1cb94368d36bf2c
glsl: Add a lowering pass to move discards out of if-statements.

This should allow lower_if_to_cond_assign to work in the presence of
discards, fixing bug #31690 and likely #31983.

NOTE: This is a candidate for the 7.9 branch.
src/glsl/Makefile
src/glsl/SConscript
src/glsl/ir_optimization.h
src/glsl/lower_discard.cpp [new file with mode: 0644]
src/mesa/program/ir_to_mesa.cpp