vc4: Add disabled debug printf for describing blits.
authorEric Anholt <eric@anholt.net>
Tue, 8 Dec 2015 04:27:20 +0000 (20:27 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 8 Dec 2015 17:49:51 +0000 (09:49 -0800)
I keep typing variants of this while debugging RCL blits for MSAA.

src/gallium/drivers/vc4/vc4_blit.c

index 6f5c91d09098e2fcfab053b0d04e93a9793d2c41..2aed5401f59926645488ad9c2b18bc5e444acf6a 100644 (file)
@@ -82,6 +82,16 @@ vc4_tile_blit(struct pipe_context *pctx, const struct pipe_blit_info *info)
 
         vc4_flush(pctx);
 
+        if (false) {
+                fprintf(stderr, "RCL blit from %d,%d to %d,%d (%d,%d)\n",
+                        info->src.box.x,
+                        info->src.box.y,
+                        info->dst.box.x,
+                        info->dst.box.y,
+                        info->dst.box.width,
+                        info->dst.box.height);
+        }
+
         struct pipe_surface *dst_surf =
                 vc4_get_blit_surface(pctx, info->dst.resource, info->dst.level);
         struct pipe_surface *src_surf =