mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 05:19:56 +00:00
GPU: Fix SSE4 Vec3f normalize.
Was sometimes adding in garbage data, which could create NANs.
This commit is contained in:
parent
391320db52
commit
c80f325912
@ -121,7 +121,8 @@ __m128 SSENormalizeMultiplierSSE2(__m128 v)
|
||||
#endif
|
||||
__m128 SSENormalizeMultiplierSSE4(__m128 v)
|
||||
{
|
||||
return _mm_rsqrt_ps(_mm_dp_ps(v, v, 0xFF));
|
||||
// This is only used for Vec3f, so ignore the 4th component, might be garbage.
|
||||
return _mm_rsqrt_ps(_mm_dp_ps(v, v, 0x77));
|
||||
}
|
||||
|
||||
__m128 SSENormalizeMultiplier(bool useSSE4, __m128 v)
|
||||
|
Loading…
Reference in New Issue
Block a user