mesa: fix transform_points_3d_no_rot using undefined values in %xmm0
authorArthur HUILLET <arthur.huillet@free.fr>
Tue, 30 Jun 2009 10:46:27 +0000 (12:46 +0200)
committerBrian Paul <brianp@vmware.com>
Tue, 30 Jun 2009 14:43:23 +0000 (08:43 -0600)
Signed-off-by: Arthur HUILLET <arthur.huillet@free.fr>
src/mesa/x86/sse_xform2.S
src/mesa/x86/sse_xform3.S

index 91b82e729719e4faad997fa0db06ddb2d0a9bd68..b490d4c169f0e83bcbf88dbe5def0f899e748732 100644 (file)
@@ -186,6 +186,7 @@ GLNAME(_mesa_sse_transform_points2_3d_no_rot):
     MOV_L( REGOFF(V4F_START, EDI), EDI )       /* ptr to first dest vertex */
     ADD_L( EDI, ECX )                          /* count += dest ptr */
 
+    PXOR( XMM0, XMM0 )
 
 ALIGNTEXT32
     MOVSS    ( M(0), XMM1 )                    /* - | - |  -  | m0  */
index 1fc79ef21bdb7816481678e995b6cfc9f2ea71bb..8a79eeda18d0cb46904580507137870148768759 100644 (file)
@@ -198,6 +198,7 @@ GLNAME(_mesa_sse_transform_points3_3d_no_rot):
     MOV_L( REGOFF(V4F_START, EDI), EDI )       /* ptr to first dest vertex */
     ADD_L( EDI, ECX )                          /* count += dest ptr */
 
+    PXOR( XMM0, XMM0 )
 
 ALIGNTEXT32
     MOVSS    ( M(0), XMM1 )                    /* - | - |  -  | m0  */