i965: Add INTEL_DEBUG=perfmon support.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 31 Oct 2013 06:17:23 +0000 (23:17 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Nov 2013 23:01:13 +0000 (15:01 -0800)
This will enable debugging printfs for the AMD_performance_monitor code.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/intel_debug.c
src/mesa/drivers/dri/i965/intel_debug.h

index b3e29353c4cf3b416c6254ddb2c7b16caf1f9e9f..0c45c99c0647f2abf98bfc45ece50baf13005d7c 100644 (file)
@@ -43,6 +43,7 @@ static const struct dri_debug_control debug_control[] = {
    { "mip",   DEBUG_MIPTREE},
    { "fall",  DEBUG_PERF},
    { "perf",  DEBUG_PERF},
+   { "perfmon", DEBUG_PERFMON},
    { "bat",   DEBUG_BATCH},
    { "pix",   DEBUG_PIXEL},
    { "buf",   DEBUG_BUFMGR},
index 718d95b1da5fbe67803e2958565514a13d03d886..bf843a2b7cf6e81c6856d3626e1bd7ee2dc5599c 100644 (file)
@@ -39,6 +39,7 @@ extern int INTEL_DEBUG;
 #define DEBUG_BLIT       0x8
 #define DEBUG_MIPTREE     0x10
 #define DEBUG_PERF       0x20
+#define DEBUG_PERFMON     0x40
 #define DEBUG_BATCH       0x80
 #define DEBUG_PIXEL       0x100
 #define DEBUG_BUFMGR      0x200