summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCooper Yuan <cooperyuan@gmail.com>2009-04-21 15:50:14 +0800
committerCooper Yuan <cooperyuan@gmail.com>2009-04-21 15:50:14 +0800
commitbe53858d8c6414e840677d98c9268f37014d2a29 (patch)
tree1e48312d50d916dbc04066294b14146f881fcb33
parentce3d7270479744bbe9f19773f34b74743ad61e57 (diff)
R6xx: In order to reduce verbose message, set debug >= 2
-rw-r--r--src/mesa/drivers/dri/r600/r600_common.h2
-rw-r--r--src/mesa/drivers/dri/r600/r700_debug.c6
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 e5d17b585e..7e5cb81d95 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 d8e4731c96..2ae0430782 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;
}