diff options
author | Keith Whitwell <[email protected]> | 2008-04-21 19:48:08 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2008-04-21 19:48:08 +0100 |
commit | 73706deef59c35472d2410411403f30c9603f22f (patch) | |
tree | af812fb904f269ae91fb805f2dd4919757cd2ea4 /src/gallium/auxiliary | |
parent | 73c2711bb186692b866720058a09f5eb05950213 (diff) |
rtasm: quieten sse_enabled debug
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/rtasm/rtasm_cpu.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/rtasm/rtasm_cpu.c b/src/gallium/auxiliary/rtasm/rtasm_cpu.c index 175245a9f6b..f01e12faa07 100644 --- a/src/gallium/auxiliary/rtasm/rtasm_cpu.c +++ b/src/gallium/auxiliary/rtasm/rtasm_cpu.c @@ -32,7 +32,16 @@ static boolean rtasm_sse_enabled(void) { - return !debug_get_bool_option("GALLIUM_NOSSE", FALSE); + static boolean firsttime = 1; + static boolean enabled; + + /* This gets called quite often at the moment: + */ + if (firsttime) { + enabled = !debug_get_bool_option("GALLIUM_NOSSE", FALSE); + firsttime = FALSE; + } + return enabled; } int rtasm_cpu_has_sse(void) |