Mesa (r6xx-r7xx-support): R6xx: In order to reduce verbose message, set debug >= 2
Cooper Yuan
cooperyuan at kemper.freedesktop.org
Tue Apr 21 07:51:33 UTC 2009
Module: Mesa
Branch: r6xx-r7xx-support
Commit: be53858d8c6414e840677d98c9268f37014d2a29
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=be53858d8c6414e840677d98c9268f37014d2a29
Author: Cooper Yuan <cooperyuan at gmail.com>
Date: Tue Apr 21 15:50:14 2009 +0800
R6xx: In order to reduce verbose message, set debug >= 2
---
src/mesa/drivers/dri/r600/r600_common.h | 2 +-
src/mesa/drivers/dri/r600/r700_debug.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/mesa/drivers/dri/r600/r600_common.h b/src/mesa/drivers/dri/r600/r600_common.h
index e5d17b5..7e5cb81 100644
--- a/src/mesa/drivers/dri/r600/r600_common.h
+++ b/src/mesa/drivers/dri/r600/r600_common.h
@@ -33,7 +33,7 @@ extern int debug;
#define DEBUG_FUNC do { if (debug >= 1) fprintf (stderr, "[r600] %s (%s:%d)\n", __func__, __FILE__, __LINE__); } while (0)
#define DEBUG_FUNCF(x...) do { if (debug >= 1) { fprintf (stderr, "[r600] %s (%s:%d) ", __func__, __FILE__, __LINE__); fprintf (stderr, x); } } while (0)
#define DEBUGF(x...) do { if (debug >= 1) { fprintf (stderr, "[r600] " x); } } while (0)
-#define DEBUGP(x...) do { if (debug >= 1) { fprintf (stderr, "" x); } } while (0)
+#define DEBUGP(x...) do { if (debug >= 2) { fprintf (stderr, "" x); } } while (0)
#if __SIZEOF_LONG__ == 8
diff --git a/src/mesa/drivers/dri/r600/r700_debug.c b/src/mesa/drivers/dri/r600/r700_debug.c
index d8e4731..2ae0430 100644
--- a/src/mesa/drivers/dri/r600/r700_debug.c
+++ b/src/mesa/drivers/dri/r600/r700_debug.c
@@ -58,13 +58,13 @@ void DumpHwBinary(int type, void *addr, int size)
switch (type)
{
case DUMP_PIXEL_SHADER:
- DEBUGF("Pixel Shader\n");
+ DEBUGP("[r600] Pixel Shader\n");
break;
case DUMP_VERTEX_SHADER:
- DEBUGF("Vertex Shader\n");
+ DEBUGP("[r600] Vertex Shader\n");
break;
case DUMP_FETCH_SHADER:
- DEBUGF("Fetch Shader\n");
+ DEBUGP("[r600] Fetch Shader\n");
break;
}
More information about the mesa-commit
mailing list