diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2003-01-30 14:30:36 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2003-01-30 14:30:36 +0000 |
commit | 984f7e5324709c466cedf4f909d835ca763a6faf (patch) | |
tree | a9476de81e0016eaa71085462f004931c1e86195 | |
parent | 7a23c68f357e4fbe9eb7f59e5e1b9d91fcc45a62 (diff) |
fix reported 3Dnow bug in _mesa_normal_tab (Felix Kuhling)
-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 dc4ee9b2d3..83a1429b78 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.3.4.1 2003/01/28 22:41:49 brianp Exp $ */ +/* $Id: 3dnow_normal.S,v 1.3.4.2 2003/01/30 14:30:36 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 */ |