Mesa (master): st/mesa: 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: 981c6bc6a5a7dcf941972939c224dfb7f98b904a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=981c6bc6a5a7dcf941972939c224dfb7f98b904a
Author: Jakob Bornecrantz <jakob at vmware.com>
Date: Thu Aug 5 17:14:38 2010 -0700
st/mesa: Only get debug option once
---
src/mesa/state_tracker/st_debug.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/mesa/state_tracker/st_debug.c b/src/mesa/state_tracker/st_debug.c
index ebf6ec6..1260fe0 100644
--- 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
}
More information about the mesa-commit
mailing list