diff options
author | Corbin Simpson <MostAwesomeDude@gmail.com> | 2009-02-16 03:56:03 -0800 |
---|---|---|
committer | Corbin Simpson <MostAwesomeDude@gmail.com> | 2009-02-16 04:12:42 -0800 |
commit | ffbe28d25d755bc51d9f865ac176a110f6f8f5e0 (patch) | |
tree | 243e59a3fd79f138e4e54a954d5de8046af3a335 /src/gallium/drivers/r300/r300_cs_inlines.h | |
parent | f211da4c67fbe0e67475efcd9535b9cf9e5ae467 (diff) |
r300-gallium: Add verbosity level to debugging.
Makes it a bit more manageable to read through the console logs.
Diffstat (limited to 'src/gallium/drivers/r300/r300_cs_inlines.h')
-rw-r--r-- | src/gallium/drivers/r300/r300_cs_inlines.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_cs_inlines.h b/src/gallium/drivers/r300/r300_cs_inlines.h index db931fd485..03bb608eb9 100644 --- a/src/gallium/drivers/r300/r300_cs_inlines.h +++ b/src/gallium/drivers/r300/r300_cs_inlines.h @@ -29,8 +29,9 @@ #define RADEON_ONE_REG_WR (1 << 15) #define OUT_CS_ONE_REG(register, count) do { \ - debug_printf("r300: writing data sequence of %d to 0x%04X\n", \ - count, register); \ + if (VERY_VERBOSE_REGISTERS) \ + debug_printf("r300: writing data sequence of %d to 0x%04X\n", \ + count, register); \ assert(register); \ OUT_CS(CP_PACKET0(register, ((count) - 1)) | RADEON_ONE_REG_WR); \ } while (0) |