diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2003-01-30 14:30:24 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2003-01-30 14:30:24 +0000 |
commit | 4c3bb69a94d665b794e38024d7e99ef4722adb72 (patch) | |
tree | 550ad710aa647e85fa7684be812835836c3848b4 /src | |
parent | 5c31f8678b7ad10145c434c00461115449a357e0 (diff) | |
download | external_mesa3d-4c3bb69a94d665b794e38024d7e99ef4722adb72.zip external_mesa3d-4c3bb69a94d665b794e38024d7e99ef4722adb72.tar.gz external_mesa3d-4c3bb69a94d665b794e38024d7e99ef4722adb72.tar.bz2 |
fix reported 3Dnow bug in _mesa_normal_tab (Felix Kuhling)
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/x86/3dnow_normal.S | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/x86/3dnow_normal.S b/src/mesa/x86/3dnow_normal.S index e7659a6..2855f60 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 */ |