From 5d29140f74e980fd6054030c9012dac35f361081 Mon Sep 17 00:00:00 2001 From: Alpyne Date: Sun, 9 Oct 2022 02:54:20 -0700 Subject: [PATCH] [util] replaceNaN: Use unaligned SIMD _mm_loadu_ps There is no good reason to expect games will have aligned the data they're passing in. --- src/util/util_vector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/util_vector.h b/src/util/util_vector.h index ace6cde7..72797441 100644 --- a/src/util/util_vector.h +++ b/src/util/util_vector.h @@ -153,7 +153,7 @@ namespace dxvk { inline Vector4 replaceNaN(Vector4 a) { #ifdef DXVK_ARCH_X86 Vector4 result; - __m128 value = _mm_load_ps(a.data); + __m128 value = _mm_loadu_ps(a.data); __m128 mask = _mm_cmpeq_ps(value, value); value = _mm_and_ps(value, mask); _mm_store_ps(result.data, value);