summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2002-11-09 17:43:58 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2002-11-09 17:43:58 +0000
commitb6d90e50ea363f642027cbf31ae1b98a25443c8a (patch)
tree7df45adfe8ec7939b631b12fdb6b87a103678434 /src/mesa
parentaa80f0548499f693a0fda1bdab5af416f21025e8 (diff)
fix 3dnow misdetection on new p4's
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/x86/common_x86_asm.S7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/x86/common_x86_asm.S b/src/mesa/x86/common_x86_asm.S
index 5e7e39febe..a966078b2d 100644
--- a/src/mesa/x86/common_x86_asm.S
+++ b/src/mesa/x86/common_x86_asm.S
@@ -1,4 +1,4 @@
-/* $Id: common_x86_asm.S,v 1.12 2002/09/19 16:07:32 brianp Exp $ */
+/* $Id: common_x86_asm.S,v 1.13 2002/11/09 17:43:58 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -112,6 +112,11 @@ GLNAME( _mesa_identify_x86_cpu_features ):
MOV_L ( CONST(0x1), EAX )
CPUID
MOV_L ( EDX, EAX )
+
+ /* Mask out highest bit, which is used by AMD for 3dnow
+ * Newer Intel have this bit set, but do not support 3dnow
+ */
+ AND_L ( CONST(0X7FFFFFFF), EAX)
JMP ( LLBL(cpuid_done) )
LLBL(cpuid_amd):