summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300
diff options
context:
space:
mode:
authorCorbin Simpson <[email protected]>2009-10-18 10:30:18 -0700
committerCorbin Simpson <[email protected]>2009-10-18 10:30:18 -0700
commitd2e29b502e5f777551ff057f08e54d82542863cf (patch)
treea3a417650d68838b1ed5e13d67dda1a94df8b735 /src/gallium/drivers/r300
parent838da1d4ae11aa8b5eab4f35713709714e337cbe (diff)
r300g: Add another ZTOP condition.
I don't even know if texkill works right now.
Diffstat (limited to 'src/gallium/drivers/r300')
-rw-r--r--src/gallium/drivers/r300/r300_state_derived.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_state_derived.c b/src/gallium/drivers/r300/r300_state_derived.c
index c59d446e931..2c624766bb9 100644
--- a/src/gallium/drivers/r300/r300_state_derived.c
+++ b/src/gallium/drivers/r300/r300_state_derived.c
@@ -517,6 +517,8 @@ static void r300_update_ztop(struct r300_context* r300)
*/
if (r300->dsa_state->alpha_function) {
r300->ztop_state.z_buffer_top = R300_ZTOP_DISABLE;
+ } else if (r300->fs->info.uses_kill) {
+ r300->ztop_state.z_buffer_top = R300_ZTOP_DISABLE;
} else if (r300_fragment_shader_writes_depth(r300->fs)) {
r300->ztop_state.z_buffer_top = R300_ZTOP_DISABLE;
} else if (r300->query_current) {