summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Hopf <mhopf@suse.de>2009-02-20 21:08:14 +0100
committerMatthias Hopf <mhopf@suse.de>2009-02-24 17:32:46 +0100
commited076ac7b61907bed55f646efa850a1e3cf70b4a (patch)
treebb8c300e049617b82d0a1ee8c34de04937c9fe4d
parent0be7235d970daef26ace27538b4787479f8e4f01 (diff)
Only print out full buffer contents on verbose >= 2.
-rw-r--r--r600_lib.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/r600_lib.c b/r600_lib.c
index cef43ab..e6767d8 100644
--- a/r600_lib.c
+++ b/r600_lib.c
@@ -245,14 +245,18 @@ void flush_cmds (void)
return;
}
if (verbose) {
- printf ("flushing indirect buffer %d with %d dwords%s:\n",
+ printf ("flushing indirect buffer %d with %d dwords%s",
indirect_idx, (indirect_end-indirect_start)>>2,
use_ring_directly ? " to ring":"");
- for (i = indirect_start>>2; i < indirect_end>>2; i += 8) {
- printf (" %08x %08x %08x %08x %08x %08x %08x %08x\n",
- indirect[i], indirect[i+1], indirect[i+2], indirect[i+3],
- indirect[i+4], indirect[i+5], indirect[i+6], indirect[i+7]);
- }
+ if (verbose >= 2) {
+ printf (":\n");
+ for (i = indirect_start>>2; i < indirect_end>>2; i += 8) {
+ printf (" %08x %08x %08x %08x %08x %08x %08x %08x\n",
+ indirect[i], indirect[i+1], indirect[i+2], indirect[i+3],
+ indirect[i+4], indirect[i+5], indirect[i+6], indirect[i+7]);
+ }
+ } else
+ printf ("\n");
}
if (do_not_flush)