From fdb00ac1efc7c12aeed1a7e705c5a5dd258b7d54 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Sun, 12 Sep 2010 11:37:07 +0200 Subject: [PATCH] nv50: newlines in shader bincode printing --- src/gallium/drivers/nv50/nv50_pc.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/nv50/nv50_pc.c b/src/gallium/drivers/nv50/nv50_pc.c index 0511acfd571..c934450d424 100644 --- a/src/gallium/drivers/nv50/nv50_pc.c +++ b/src/gallium/drivers/nv50/nv50_pc.c @@ -405,10 +405,13 @@ nv_print_cfgraph(struct nv_pc *pc, const char *filepath, int subr) static INLINE void nvcg_show_bincode(struct nv_pc *pc) { - int i; + unsigned i; - for (i = 0; i < pc->bin_size / 4; ++i) + for (i = 0; i < pc->bin_size / 4; ++i) { debug_printf("0x%08x ", pc->emit[i]); + if ((i % 16) == 15) + debug_printf("\n"); + } debug_printf("\n"); } -- 2.30.2