Mesa (master): r300g: print some HyperZ debug info

Marek Olšák mareko at kemper.freedesktop.org
Sun May 29 01:03:37 UTC 2011


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

Author: Marek Olšák <maraeo at gmail.com>
Date:   Sun May 15 02:34:16 2011 +0200

r300g: print some HyperZ debug info

---

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

diff --git a/src/gallium/drivers/r300/r300_blit.c b/src/gallium/drivers/r300/r300_blit.c
index 4ec77df..7f43026 100644
--- a/src/gallium/drivers/r300/r300_blit.c
+++ b/src/gallium/drivers/r300/r300_blit.c
@@ -234,6 +234,9 @@ static void r300_clear(struct pipe_context* pipe,
 
             /* Setup Hyper-Z clears. */
             if (r300->hyperz_enabled) {
+                DBG(r300, DBG_HYPERZ, "r300: Clear memory: %s%s\n",
+                    zmask_clear ? "ZMASK " : "", hiz_clear ? "HIZ" : "");
+
                 if (zmask_clear) {
                     hyperz_dcv = hyperz->zb_depthclearvalue =
                         r300_depth_clear_value(fb->zsbuf->format, depth, stencil);
diff --git a/src/gallium/drivers/r300/r300_hyperz.c b/src/gallium/drivers/r300/r300_hyperz.c
index e946d61..0f021e9 100644
--- a/src/gallium/drivers/r300/r300_hyperz.c
+++ b/src/gallium/drivers/r300/r300_hyperz.c
@@ -195,6 +195,7 @@ static void r300_update_hyperz(struct r300_context* r300)
             }
             return;
         }
+        DBG(r300, DBG_HYPERZ, "r300: Z-func: %i\n", dsa->dsa.depth.func);
 
         /* Set the HiZ function if needed. */
         if (r300->hiz_func == HIZ_FUNC_NONE) {




More information about the mesa-commit mailing list