Mesa (master): r300g: Add another ZTOP condition.

Corbin Simpson csimpson at kemper.freedesktop.org
Sun Oct 18 21:04:17 UTC 2009


Module: Mesa
Branch: master
Commit: d2e29b502e5f777551ff057f08e54d82542863cf
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d2e29b502e5f777551ff057f08e54d82542863cf

Author: Corbin Simpson <MostAwesomeDude at gmail.com>
Date:   Sun Oct 18 10:30:18 2009 -0700

r300g: Add another ZTOP condition.

I don't even know if texkill works right now.

---

 src/gallium/drivers/r300/r300_state_derived.c |    2 ++
 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 c59d446..2c62476 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) {




More information about the mesa-commit mailing list