diff options
Diffstat (limited to 'src/mesa/x86/common_x86.c')
-rw-r--r-- | src/mesa/x86/common_x86.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/mesa/x86/common_x86.c b/src/mesa/x86/common_x86.c index 94a9c1caf1d..5342d85854e 100644 --- a/src/mesa/x86/common_x86.c +++ b/src/mesa/x86/common_x86.c @@ -29,6 +29,8 @@ * processor. * * Written by Holger Waechtler <[email protected]> + * Changed by Andre Werthmann <[email protected]> for using the + * new Katmai functions */ #include <stdlib.h> @@ -40,6 +42,7 @@ int gl_x86_cpu_features = 0; void gl_init_all_x86_asm (void) { + #ifdef USE_X86_ASM gl_x86_cpu_features = gl_identify_x86_cpu_features (); gl_x86_cpu_features |= GL_CPU_AnyX86; @@ -52,7 +55,7 @@ void gl_init_all_x86_asm (void) } if (gl_x86_cpu_features) { - gl_init_x86_asm_transforms (); + gl_init_x86_asm_transforms (); } #ifdef USE_MMX_ASM @@ -66,7 +69,6 @@ void gl_init_all_x86_asm (void) } #endif - #ifdef USE_3DNOW_ASM if (gl_x86_cpu_features & GL_CPU_3Dnow) { char *s = getenv( "MESA_NO_3DNOW" ); @@ -79,6 +81,19 @@ void gl_init_all_x86_asm (void) } #endif + +#ifdef USE_KATMAI_ASM + if (gl_x86_cpu_features & GL_CPU_Katmai) { + char *s = getenv( "MESA_NO_KATMAI" ); + if (s == NULL) { + fprintf (stderr, "Katmai cpu detected.\n"); + gl_init_katmai_asm_transforms (); + } else { + gl_x86_cpu_features &= (~GL_CPU_Katmai); + } + } +#endif + #endif } |