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

Author: Kristian H. Kristensen <[email protected]>
Date:   Thu Nov 21 11:41:15 2019 -0800

freedreno/a6xx: Make DEBUG_BLIT_FALLBACK only dump fallbacks

Use new macro, DEBUG_BLIT, for dumping all blits.

Reviewed-by: Eric Anholt <[email protected]>
Signed-off-by: Kristian H. Kristensen <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2848>

---

 src/gallium/drivers/freedreno/a6xx/fd6_blitter.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_blitter.c 
b/src/gallium/drivers/freedreno/a6xx/fd6_blitter.c
index 09afbbe0cc7..98e2ab9d71c 100644
--- a/src/gallium/drivers/freedreno/a6xx/fd6_blitter.c
+++ b/src/gallium/drivers/freedreno/a6xx/fd6_blitter.c
@@ -82,7 +82,9 @@ ok_format(enum pipe_format pfmt)
        return true;
 }
 
+#define DEBUG_BLIT 0
 #define DEBUG_BLIT_FALLBACK 0
+
 #define fail_if(cond)                                                          
                                        \
        do {                                                                    
                                                        \
                if (cond) {                                                     
                                                        \
@@ -206,7 +208,7 @@ emit_blit_buffer(struct fd_context *ctx, struct 
fd_ringbuffer *ring,
        struct fd_resource *src, *dst;
        unsigned sshift, dshift;
 
-       if (DEBUG_BLIT_FALLBACK) {
+       if (DEBUG_BLIT) {
                fprintf(stderr, "buffer blit: ");
                util_dump_blit_info(stderr, info);
                fprintf(stderr, "\ndst resource: ");
@@ -358,7 +360,7 @@ emit_blit_or_clear_texture(struct fd_context *ctx, struct 
fd_ringbuffer *ring,
        int sx1, sy1, sx2, sy2;
        int dx1, dy1, dx2, dy2;
 
-       if (DEBUG_BLIT_FALLBACK) {
+       if (DEBUG_BLIT) {
                fprintf(stderr, "texture blit: ");
                util_dump_blit_info(stderr, info);
                fprintf(stderr, "\ndst resource: ");
@@ -668,7 +670,7 @@ handle_zs_blit(struct fd_context *ctx, const struct 
pipe_blit_info *info)
 {
        struct pipe_blit_info blit = *info;
 
-       if (DEBUG_BLIT_FALLBACK) {
+       if (DEBUG_BLIT) {
                fprintf(stderr, "---- handle_zs_blit: ");
                util_dump_blit_info(stderr, info);
                fprintf(stderr, "\ndst resource: ");

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

Reply via email to