summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i965/brw_screen.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-11-30 13:39:21 +0000
committerKeith Whitwell <[email protected]>2009-11-30 15:37:27 +0000
commitcddc7e3a9cd321247c2298ef1b94cced1122a8e5 (patch)
treec2b8bb745618e8e8339d7a642093c50013060f08 /src/gallium/drivers/i965/brw_screen.c
parent4490122d0cae360d1552cea7d7d860de352f13f6 (diff)
brw: add dumping to gem winsys
Diffstat (limited to 'src/gallium/drivers/i965/brw_screen.c')
-rw-r--r--src/gallium/drivers/i965/brw_screen.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/drivers/i965/brw_screen.c b/src/gallium/drivers/i965/brw_screen.c
index 05da72ebb2b..70e2d9c47a3 100644
--- a/src/gallium/drivers/i965/brw_screen.c
+++ b/src/gallium/drivers/i965/brw_screen.c
@@ -65,7 +65,16 @@ static const struct debug_named_value debug_names[] = {
{ NULL, 0 }
};
+static const struct debug_named_value dump_names[] = {
+ { "asm", DUMP_ASM},
+ { "state", DUMP_STATE},
+ { "batch", DUMP_BATCH},
+ { NULL, 0 }
+};
+
int BRW_DEBUG = 0;
+int BRW_DUMP = 0;
+
#endif
@@ -327,6 +336,8 @@ brw_create_screen(struct brw_winsys_screen *sws, uint pci_id)
BRW_DEBUG = debug_get_flags_option("BRW_DEBUG", debug_names, 0);
BRW_DEBUG |= debug_get_flags_option("INTEL_DEBUG", debug_names, 0);
BRW_DEBUG |= DEBUG_STATS | DEBUG_MIN_URB | DEBUG_WM;
+
+ BRW_DUMP = debug_get_flags_option("BRW_DUMP", dump_names, 0);
#endif
memset(&chipset, 0, sizeof chipset);