rtasm: quieten sse_enabled debug

This commit is contained in:
Keith Whitwell 2008-04-21 19:48:08 +01:00
parent 73c2711bb1
commit 73706deef5
1 changed files with 10 additions and 1 deletions

View File

@ -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)