projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99611f0
)
st/mesa: Only get debug option once
author
Jakob Bornecrantz
<jakob@vmware.com>
Fri, 6 Aug 2010 00:14:38 +0000
(17:14 -0700)
committer
Jakob Bornecrantz
<jakob@vmware.com>
Fri, 6 Aug 2010 00:25:13 +0000
(17:25 -0700)
src/mesa/state_tracker/st_debug.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_debug.c
b/src/mesa/state_tracker/st_debug.c
index ebf6ec6e7e20083304609fad90f8ceccb3512f1b..1260fe04b1bd06c22eaa039e948fb3bd0374f0a9 100644
(file)
--- a/
src/mesa/state_tracker/st_debug.c
+++ b/
src/mesa/state_tracker/st_debug.c
@@
-55,6
+55,8
@@
static const struct debug_named_value st_debug_flags[] = {
{ "query", DEBUG_QUERY, NULL },
DEBUG_NAMED_VALUE_END
};
+
+DEBUG_GET_ONCE_FLAGS_OPTION(st_debug, "ST_DEBUG", st_debug_flags, 0);
#endif
@@
-62,7
+64,7
@@
void
st_debug_init(void)
{
#ifdef DEBUG
- ST_DEBUG = debug_get_
flags_option("ST_DEBUG", st_debug_flags, 0
);
+ ST_DEBUG = debug_get_
option_st_debug(
);
#endif
}