Mesa (master): r300g: mark HiZ/ ZMask_clear atoms as non-dirty after emission in clear

Marek Olšák mareko at kemper.freedesktop.org
Sun Aug 15 07:30:47 UTC 2010


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

Author: Marek Olšák <maraeo at gmail.com>
Date:   Sun Aug 15 09:13:50 2010 +0200

r300g: mark HiZ/ZMask_clear atoms as non-dirty after emission in clear

---

 src/gallium/drivers/r300/r300_blit.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/r300/r300_blit.c b/src/gallium/drivers/r300/r300_blit.c
index 559936c..47ffc0c 100644
--- a/src/gallium/drivers/r300/r300_blit.c
+++ b/src/gallium/drivers/r300/r300_blit.c
@@ -237,9 +237,12 @@ static void r300_clear(struct pipe_context* pipe,
         /* Emit clear packets. */
         r300_emit_zmask_clear(r300, r300->zmask_clear.size,
                               r300->zmask_clear.state);
-        if (r300->hiz_clear.dirty)
+        r300->zmask_clear.dirty = FALSE;
+        if (r300->hiz_clear.dirty) {
             r300_emit_hiz_clear(r300, r300->hiz_clear.size,
                                 r300->hiz_clear.state);
+            r300->hiz_clear.dirty = FALSE;
+        }
     } else {
         assert(0);
     }




More information about the mesa-commit mailing list