vc4: Fix CL dumping trying to dump too far.
authorEric Anholt <eric@anholt.net>
Tue, 13 Jan 2015 21:06:02 +0000 (10:06 +1300)
committerEric Anholt <eric@anholt.net>
Thu, 15 Jan 2015 09:19:25 +0000 (22:19 +1300)
Execution will end at the cl->next, because that's what ct0ea/ct1ea get
programmed to.

src/gallium/drivers/vc4/vc4_context.c

index 6729fa3e074daa82b3a3529a4da3ca138f1a6606..17520163d183cd8968d9e2359b507ddabcc29bec 100644 (file)
@@ -355,9 +355,9 @@ vc4_flush(struct pipe_context *pctx)
 
         if (vc4_debug & VC4_DEBUG_CL) {
                 fprintf(stderr, "BCL:\n");
-                vc4_dump_cl(vc4->bcl.base, vc4->bcl.size, false);
+                vc4_dump_cl(vc4->bcl.base, vc4->bcl.next - vc4->bcl.base, false);
                 fprintf(stderr, "RCL:\n");
-                vc4_dump_cl(vc4->rcl.base, vc4->rcl.size, true);
+                vc4_dump_cl(vc4->rcl.base, vc4->rcl.next - vc4->rcl.base, true);
         }
 
         struct drm_vc4_submit_cl submit;