ir_to_mesa: When emitting a pixel kill, flag that we did so.
authorEric Anholt <eric@anholt.net>
Tue, 31 Aug 2010 20:02:59 +0000 (13:02 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 31 Aug 2010 22:43:49 +0000 (15:43 -0700)
commit9b075cb9fa9eb6a95d0816283ef01ae72dafa680
tree59f27f53b84fab6f5e2f42957035786217b4443b
parente38d2f716381385e2aad219a3d125065ec0a01bd
ir_to_mesa: When emitting a pixel kill, flag that we did so.

Both i965 and swrast rely on UsesKill to determine whether to do early
depth writes.  Fixes glsl-fs-discard-02.

Bug #29835.
src/mesa/program/ir_to_mesa.cpp