aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/x86/3dnow_normal.S
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2003-01-30 14:30:24 +0000
committerBrian Paul <[email protected]>2003-01-30 14:30:24 +0000
commit4c3bb69a94d665b794e38024d7e99ef4722adb72 (patch)
tree550ad710aa647e85fa7684be812835836c3848b4 /src/mesa/x86/3dnow_normal.S
parent5c31f8678b7ad10145c434c00461115449a357e0 (diff)
fix reported 3Dnow bug in _mesa_normal_tab (Felix Kuhling)
Diffstat (limited to 'src/mesa/x86/3dnow_normal.S')
-rw-r--r--src/mesa/x86/3dnow_normal.S8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/x86/3dnow_normal.S b/src/mesa/x86/3dnow_normal.S
index e7659a6ba6a..2855f608c39 100644
--- a/src/mesa/x86/3dnow_normal.S
+++ b/src/mesa/x86/3dnow_normal.S
@@ -1,4 +1,4 @@
-/* $Id: 3dnow_normal.S,v 1.4 2003/01/28 22:41:18 brianp Exp $ */
+/* $Id: 3dnow_normal.S,v 1.5 2003/01/30 14:30:24 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -732,14 +732,14 @@ LLBL (G3N_norm2): /* need to calculate lengths */
PREFETCHW ( REGIND(EAX) )
- MOVQ ( MM0, MM3 ) /* x1 | x0 */
- ADD_L ( STRIDE, ECX ) /* next normal */
-
PREFETCH ( REGIND(ECX) )
MOVQ ( REGIND(ECX), MM0 ) /* x1 | x0 */
MOVD ( REGOFF(8, ECX), MM1 ) /* | x2 */
+ MOVQ ( MM0, MM3 ) /* x1 | x0 */
+ ADD_L ( STRIDE, ECX ) /* next normal */
+
PFMUL ( MM0, MM3 ) /* x1*x1 | x0*x0 */
MOVQ ( MM1, MM4 ) /* | x2 */