r300g: Add stats debug flag.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Mon, 26 Apr 2010 14:01:27 +0000 (07:01 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Mon, 26 Apr 2010 14:13:51 +0000 (07:13 -0700)
src/gallium/drivers/r300/r300_debug.c
src/gallium/drivers/r300/r300_screen.h

index 6e84bf82469eb93beccad0af960a53b99ff8aa37..aed0ffeeccb890708a1709fd5b644dbf57302963 100644 (file)
@@ -41,6 +41,7 @@ static struct debug_option debug_options[] = {
     { "anisohq", DBG_ANISOHQ, "High quality anisotropic filtering (for benchmarking)" },
     { "notiling", DBG_NO_TILING, "Disable tiling (for benchmarking)" },
     { "noimmd", DBG_NO_IMMD, "Disable immediate mode (for benchmarking)" },
+    { "stats", DBG_STATS, "Gather statistics (for lulz)" },
 
     { "all", ~0, "Convenience option that enables all debug flags" },
 
index 330bd9b36ba77a2453f596b1fa1138bd3c9b4733..70ea2fe8d921e12c20c08a99637f1b81251f547c 100644 (file)
@@ -71,6 +71,7 @@ static INLINE struct r300_screen* r300_screen(struct pipe_screen* screen) {
 #define DBG_ANISOHQ 0x0000080
 #define DBG_NO_TILING 0x0000100
 #define DBG_NO_IMMD 0x0000200
+#define DBG_STATS   0x0000400
 /*@}*/
 
 static INLINE boolean SCREEN_DBG_ON(struct r300_screen * screen, unsigned flags)