r300g: Add another ZTOP condition.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Sun, 18 Oct 2009 17:30:18 +0000 (10:30 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Sun, 18 Oct 2009 17:30:18 +0000 (10:30 -0700)
I don't even know if texkill works right now.

src/gallium/drivers/r300/r300_state_derived.c

index c59d446..2c62476 100644 (file)
@@ -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) {