Mesa (nv50-compiler): nv50: newlines in shader bincode printing
Christoph Bumiller
chrisbmr at kemper.freedesktop.org
Sun Sep 12 09:42:09 UTC 2010
Module: Mesa
Branch: nv50-compiler
Commit: fdb00ac1efc7c12aeed1a7e705c5a5dd258b7d54
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fdb00ac1efc7c12aeed1a7e705c5a5dd258b7d54
Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date: Sun Sep 12 11:37:07 2010 +0200
nv50: newlines in shader bincode printing
---
src/gallium/drivers/nv50/nv50_pc.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/nv50/nv50_pc.c b/src/gallium/drivers/nv50/nv50_pc.c
index 0511acf..c934450 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");
}
More information about the mesa-commit
mailing list