summaryrefslogtreecommitdiff
path: root/src/mesa/x86/common_x86.c
diff options
context:
space:
mode:
authorAndre Werthmann <wertmann@cs.uni-potsdam.de>1999-11-18 09:20:50 +0000
committerAndre Werthmann <wertmann@cs.uni-potsdam.de>1999-11-18 09:20:50 +0000
commit6630e2be01f41fb3b0fdf815e00a82d8e980f116 (patch)
tree8d12988868fd05fec399316cf4f1487c2d41ccab /src/mesa/x86/common_x86.c
parent36d8d7ae815dc78e56ab64379d86f9e85b4d1c63 (diff)
checked in the first new PIII vertex-transformation code
Diffstat (limited to 'src/mesa/x86/common_x86.c')
-rw-r--r--src/mesa/x86/common_x86.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/mesa/x86/common_x86.c b/src/mesa/x86/common_x86.c
index 94a9c1caf1..5342d85854 100644
--- a/src/mesa/x86/common_x86.c
+++ b/src/mesa/x86/common_x86.c
@@ -29,6 +29,8 @@
* processor.
*
* Written by Holger Waechtler <holger@akaflieg.extern.tu-berlin.de>
+ * Changed by Andre Werthmann <wertmann@cs.uni-potsdam.de> 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
}