OSDN Git Service

glsl: Remove "discard" support from lower_jumps.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 29 Nov 2010 18:59:16 +0000 (10:59 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 1 Dec 2010 19:52:43 +0000 (11:52 -0800)
commit1802cb9bafc4125300870be51e8b22ddd795d61e
tree6101cd37b29af05142630f15c13c93e60e33fb6e
parent940df10100d740ef27fa39026fd51c3199ed3d62
glsl: Remove "discard" support from lower_jumps.

The new lower_discard and opt_discard_simplification passes should
handle all the necessary transformations, so lower_jumps doesn't need to
support it.

Also, lower_jumps incorrectly handled conditional discards - it would
unconditionally truncate all code after the discard.  Rather than fixing
the bug, simply remove the code.

NOTE: This is a candidate for the 7.9 branch.
src/glsl/lower_jumps.cpp