projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b8aa21
)
gallivm: Only get debug option once
author
Jakob Bornecrantz
<jakob@vmware.com>
Fri, 6 Aug 2010 00:11:46 +0000
(17:11 -0700)
committer
Jakob Bornecrantz
<jakob@vmware.com>
Fri, 6 Aug 2010 00:25:13 +0000
(17:25 -0700)
src/gallium/auxiliary/gallivm/lp_bld_init.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/gallivm/lp_bld_init.c
b/src/gallium/auxiliary/gallivm/lp_bld_init.c
index 69353dea09e40c2a431a0486c68d76949253ee9a..ef0888079c78d17765dba1989ca97b82fc84b783 100644
(file)
--- 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();