Re: [Mesa3d-dev] [PATCH] swrast/sse: Fix _mesa_sse_transform_pointsX_3d_no_rot

2010-02-03 Thread Patrick Baggett
Yes, XORPS = SSE1, PXOR = MMX if used on mm[0..7] and SSE2 if used on xmm[0..7] On Tue, Feb 2, 2010 at 1:27 PM, Pauli Nieminen suok...@gmail.com wrote: On Tue, Feb 2, 2010 at 9:21 PM, Matt Turner matts...@gmail.com wrote: On Tue, Feb 2, 2010 at 2:04 PM, Ian Romanick i...@freedesktop.org

[Mesa3d-dev] [PATCH] swrast/sse: Fix _mesa_sse_transform_pointsX_3d_no_rot

2010-02-02 Thread Pauli Nieminen
PXOR user in code were causing the lowest SP float register to have NaN values which made all math operations in that slot fail. Correct istruction to clear float registers is XORPS which handles single precission floats correctly. Fixes progs/tests/fog in swrast SSE mode. Signed-off-by: Pauli

Re: [Mesa3d-dev] [PATCH] swrast/sse: Fix _mesa_sse_transform_pointsX_3d_no_rot

2010-02-02 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pauli Nieminen wrote: PXOR user in code were causing the lowest SP float register to have NaN values which made all math operations in that slot fail. Correct istruction to clear float registers is XORPS which handles single precission floats

Re: [Mesa3d-dev] [PATCH] swrast/sse: Fix _mesa_sse_transform_pointsX_3d_no_rot

2010-02-02 Thread Matt Turner
On Tue, Feb 2, 2010 at 2:04 PM, Ian Romanick i...@freedesktop.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pauli Nieminen wrote: PXOR user in code were causing the lowest SP float register to have NaN values which made all math operations in that slot fail. Correct istruction to

Re: [Mesa3d-dev] [PATCH] swrast/sse: Fix _mesa_sse_transform_pointsX_3d_no_rot

2010-02-02 Thread Pauli Nieminen
On Tue, Feb 2, 2010 at 9:21 PM, Matt Turner matts...@gmail.com wrote: On Tue, Feb 2, 2010 at 2:04 PM, Ian Romanick i...@freedesktop.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pauli Nieminen wrote: PXOR user in code were causing the lowest SP float register to have NaN values