summaryrefslogtreecommitdiffstats
path: root/src/mesa/x86/common_x86.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>1999-09-03 15:48:54 +0000
committerKeith Whitwell <[email protected]>1999-09-03 15:48:54 +0000
commitda54ffc852996f94dcf46b0cdc40c5ff12b55496 (patch)
treef9887741dd86bdb163617be532c544e27634224c /src/mesa/x86/common_x86.c
parent44c73933e9f70c180d80da05636a7bf87d07cb50 (diff)
more bugfixes
Diffstat (limited to 'src/mesa/x86/common_x86.c')
-rw-r--r--src/mesa/x86/common_x86.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/x86/common_x86.c b/src/mesa/x86/common_x86.c
index ed258369299..94a9c1caf1d 100644
--- a/src/mesa/x86/common_x86.c
+++ b/src/mesa/x86/common_x86.c
@@ -42,12 +42,18 @@ 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;
+
+ if (getenv("MESA_NO_ASM") != 0)
+ gl_x86_cpu_features = 0;
if (gl_x86_cpu_features & GL_CPU_GenuineIntel) {
fprintf (stderr, "GenuineIntel cpu detected.\n");
}
- gl_init_x86_asm_transforms ();
+ if (gl_x86_cpu_features) {
+ gl_init_x86_asm_transforms ();
+ }
#ifdef USE_MMX_ASM
if (gl_x86_cpu_features & GL_CPU_MMX) {