r300g: print some HyperZ debug info
authorMarek Olšák <maraeo@gmail.com>
Sun, 15 May 2011 00:34:16 +0000 (02:34 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sun, 29 May 2011 01:03:14 +0000 (03:03 +0200)
src/gallium/drivers/r300/r300_blit.c
src/gallium/drivers/r300/r300_hyperz.c

index 4ec77df8fb7dc17630a6a0128fd36b69b5cf9e09..7f430269e417dd64a82070632a194b1c8b79af28 100644 (file)
@@ -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);
index e946d61d0ed11c11fe634f147bcf445d541de714..0f021e9f4e8ae8d077b959b982aab85adc6cd919 100644 (file)
@@ -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) {