Mesa (master): gallivm: Only get debug option once

Jakob Bornecrantz wallbraker at kemper.freedesktop.org
Fri Aug 6 00:45:14 UTC 2010


Module: Mesa
Branch: master
Commit: 4bd061b127aedfa7f6cd2c9fb4763927588c7ad1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4bd061b127aedfa7f6cd2c9fb4763927588c7ad1

Author: Jakob Bornecrantz <jakob at vmware.com>
Date:   Thu Aug  5 17:11:46 2010 -0700

gallivm: Only get debug option once

---

 src/gallium/auxiliary/gallivm/lp_bld_init.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_init.c b/src/gallium/auxiliary/gallivm/lp_bld_init.c
index 69353de..ef08880 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_init.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_init.c
@@ -45,6 +45,8 @@ static const struct debug_named_value lp_bld_debug_flags[] = {
    { "nopt",   GALLIVM_DEBUG_NO_OPT, NULL },
    DEBUG_NAMED_VALUE_END
 };
+
+DEBUG_GET_ONCE_FLAGS_OPTION(gallivm_debug, "GALLIVM_DEBUG", lp_bld_debug_flags, 0);
 #endif
 
 
@@ -89,7 +91,7 @@ void
 lp_build_init(void)
 {
 #ifdef DEBUG
-   gallivm_debug = debug_get_flags_option("GALLIVM_DEBUG", lp_bld_debug_flags, 0 );
+   gallivm_debug = debug_get_option_gallivm_debug();
 #endif
 
    lp_set_target_options();




More information about the mesa-commit mailing list