From 54a7e1fd263f008df7ddad551df5ff72635ad55d Mon Sep 17 00:00:00 2001 From: Russell King Date: Mon, 4 Aug 2014 20:25:19 +0100 Subject: Improve logging of command buffers Rather than printing command buffers as one word per line, print 8 words per line. This allows a more condensed view of the command stream. Signed-off-by: Russell King --- src/etnaviv/etna.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/etnaviv/etna.c b/src/etnaviv/etna.c index 64feb0a..a79f4b1 100644 --- a/src/etnaviv/etna.c +++ b/src/etnaviv/etna.c @@ -669,10 +669,13 @@ void etna_dump_cmd_buffer(struct etna_ctx *ctx) uint32_t start_offset = ctx->cmdbuf[ctx->cur_buf]->startOffset/4 + 8; uint32_t *buf = &ctx->buf[start_offset]; size_t size = ctx->offset - start_offset; - fprintf(stderr, "cmdbuf:\n"); - for(unsigned idx=0; idxcur_buf, start_offset); + for(unsigned idx=0; idx