r300g: fix cbzb clears when hyperz is off
[mesa.git] / src / gallium / drivers / r300 / r300_flush.c
index 7fed9b5d07478cb105d0cdf7ce1b4ef583160449..fe182b6615b7578cc1f15e7b10b5ef0fc66bc277 100644 (file)
@@ -44,8 +44,7 @@ static void r300_flush(struct pipe_context* pipe,
     u_upload_flush(r300->upload_ib);
 
     if (r300->dirty_hw) {
-        if (r300->rws->get_value(r300->rws, R300_CAN_HYPERZ))
-            r300_emit_hyperz_end(r300);
+        r300_emit_hyperz_end(r300);
         r300_emit_query_end(r300);
 
         r300->flush_counter++;