Module: Mesa Branch: llvm-context Commit: 69e90649c51434e6ca7d20daf5f69770ff9267e0 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=69e90649c51434e6ca7d20daf5f69770ff9267e0
Author: Brian Paul <[email protected]> Date: Tue Nov 30 12:54:14 2010 -0700 gallivm: added GALLIVM_DEBUG_GC flag --- src/gallium/auxiliary/gallivm/lp_bld_debug.h | 1 + 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 eb11dcd..8a58f95 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 b46a870..efe8d38 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(); _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
