i965: Add envvar to debug the optimization passes.
authorMatt Turner <mattst88@gmail.com>
Sat, 12 Apr 2014 04:10:53 +0000 (21:10 -0700)
committerMatt Turner <mattst88@gmail.com>
Sun, 1 Jun 2014 20:18:52 +0000 (13:18 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/intel_debug.c
src/mesa/drivers/dri/i965/intel_debug.h

index 621a571c3d8fe5effaec53eb292b5364908eab09..bba873bd3d7ae0e2ca75f3b3001c73243a69f0af 100644 (file)
@@ -64,6 +64,7 @@ static const struct dri_debug_control debug_control[] = {
    { "no16",  DEBUG_NO16 },
    { "blorp", DEBUG_BLORP },
    { "nodualobj", DEBUG_NO_DUAL_OBJECT_GS },
+   { "optimizer", DEBUG_OPTIMIZER },
    { NULL,    0 }
 };
 
index 6402cec80d8f0d56d24f8884e24e70a4a4b2ff66..f2570548ff81a2a02920dc3cf6caf65b5d993377 100644 (file)
@@ -60,6 +60,7 @@ extern uint64_t INTEL_DEBUG;
 #define DEBUG_NO16        0x20000000
 #define DEBUG_VUE         0x40000000
 #define DEBUG_NO_DUAL_OBJECT_GS 0x80000000
+#define DEBUG_OPTIMIZER   0x100000000
 
 #ifdef HAVE_ANDROID_PLATFORM
 #define LOG_TAG "INTEL-MESA"