diff options
author | Brian Paul <brianp@vmware.com> | 2010-11-30 12:54:14 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-11-30 13:04:32 -0700 |
commit | 69e90649c51434e6ca7d20daf5f69770ff9267e0 (patch) | |
tree | ee8b356c6fe91ea369efc0c750cba1108a77aab5 | |
parent | d9b5fd7b090dd38a5c74483addc022b9337620ea (diff) |
gallivm: added GALLIVM_DEBUG_GC flag
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_debug.h | 1 | ||||
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_init.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.h b/src/gallium/auxiliary/gallivm/lp_bld_debug.h index eb11dcd4ef..8a58f95b78 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_debug.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.h @@ -42,6 +42,7 @@ #define GALLIVM_DEBUG_NO_OPT (1 << 3) #define GALLIVM_DEBUG_PERF (1 << 4) #define GALLIVM_DEBUG_NO_BRILINEAR (1 << 5) +#define GALLIVM_DEBUG_GC (1 << 6) #ifdef DEBUG diff --git a/src/gallium/auxiliary/gallivm/lp_bld_init.c b/src/gallium/auxiliary/gallivm/lp_bld_init.c index b46a870e39..efe8d38b8f 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_init.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_init.c @@ -46,6 +46,7 @@ static const struct debug_named_value lp_bld_debug_flags[] = { { "nopt", GALLIVM_DEBUG_NO_OPT, NULL }, { "perf", GALLIVM_DEBUG_PERF, NULL }, { "no_brilinear", GALLIVM_DEBUG_NO_BRILINEAR, NULL }, + { "gc", GALLIVM_DEBUG_GC, NULL }, DEBUG_NAMED_VALUE_END }; @@ -371,7 +372,7 @@ void gallivm_garbage_collect(struct gallivm_state *gallivm) { if (gallivm->context) { - if (1) + if (gallivm_debug & GALLIVM_DEBUG_GC) debug_printf("***** Doing LLVM garbage collection\n"); call_garbage_collector_callbacks(); |