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

Author: Nicolai Hähnle <[email protected]>
Date:   Tue Aug 15 17:11:31 2017 +0200

radeonsi: log decompress blits

Reviewed-by: Marek Olšák <[email protected]>

---

 src/gallium/drivers/radeonsi/si_blit.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/src/gallium/drivers/radeonsi/si_blit.c 
b/src/gallium/drivers/radeonsi/si_blit.c
index caa4c3cad6..db983eeb22 100644
--- a/src/gallium/drivers/radeonsi/si_blit.c
+++ b/src/gallium/drivers/radeonsi/si_blit.c
@@ -24,6 +24,7 @@
 #include "si_pipe.h"
 #include "si_compute.h"
 #include "util/u_format.h"
+#include "util/u_log.h"
 #include "util/u_surface.h"
 
 enum si_blitter_op /* bitmask */
@@ -338,6 +339,12 @@ si_decompress_depth(struct si_context *sctx,
                }
        }
 
+       if (unlikely(sctx->b.log))
+               u_log_printf(sctx->b.log,
+                            
"\n------------------------------------------------\n"
+                            "Decompress Depth (levels %u - %u, levels Z: 0x%x 
S: 0x%x)\n\n",
+                            first_level, last_level, levels_z, levels_s);
+
        /* We may have to allocate the flushed texture here when called from
         * si_decompress_subresource.
         */
@@ -454,6 +461,12 @@ static void si_blit_decompress_color(struct pipe_context 
*ctx,
        if (!level_mask)
                return;
 
+       if (unlikely(sctx->b.log))
+               u_log_printf(sctx->b.log,
+                            
"\n------------------------------------------------\n"
+                            "Decompress Color (levels %u - %u, mask 0x%x)\n\n",
+                            first_level, last_level, level_mask);
+
        if (rtex->dcc_offset && need_dcc_decompress) {
                custom_blend = sctx->custom_blend_dcc_decompress;
 

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to