From d0d6d24723fb368a1bba1b379fd753713f867eca Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 14 Jan 2015 10:06:02 +1300 Subject: [PATCH] vc4: Fix CL dumping trying to dump too far. Execution will end at the cl->next, because that's what ct0ea/ct1ea get programmed to. --- src/gallium/drivers/vc4/vc4_context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/vc4/vc4_context.c b/src/gallium/drivers/vc4/vc4_context.c index 6729fa3e074..17520163d18 100644 --- a/src/gallium/drivers/vc4/vc4_context.c +++ b/src/gallium/drivers/vc4/vc4_context.c @@ -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; -- 2.11.0