From: Corbin Simpson Date: Sun, 18 Oct 2009 17:30:18 +0000 (-0700) Subject: r300g: Add another ZTOP condition. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d2e29b502e5f777551ff057f08e54d82542863cf;p=mesa.git r300g: Add another ZTOP condition. I don't even know if texkill works right now. --- 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) {