nvc0: don't enable early-z if alpha test is enabled
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sun, 13 Mar 2011 12:05:14 +0000 (13:05 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sun, 13 Mar 2011 12:23:54 +0000 (13:23 +0100)
commitf0ee7d8bb46ac7694693f3fb8cd0f15c422f1bef
tree2542af2077e4ee01a3638605e98bb3e027ef2e45
parentd9f1310e519ac8182329fcd3e6c357d44d110955
nvc0: don't enable early-z if alpha test is enabled

Depth values are also written before the shader is executed, so if
early tests are enabled, fragments that failed the alpha test were
modifying the depth buffer, but they shouldn't.
src/gallium/drivers/nvc0/nvc0_context.h
src/gallium/drivers/nvc0/nvc0_shader_state.c
src/gallium/drivers/nvc0/nvc0_state.c
src/gallium/drivers/nvc0/nvc0_state_validate.c