Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/doitsujin/dxvk.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlpyne <alpyne.dreams@gmail.com>2023-07-03 16:18:03 +0300
committerJoshie <joshua@froggi.es>2023-07-03 16:36:21 +0300
commit026aa49ef8e85504ee45eaa8b21366ed30d8c8aa (patch)
tree8a9e28fac5d65b720b331a37488be59c06706d50
parent3a368f478031f287782d03ba4b6272419060e8ea (diff)
[util] replaceNaN: Align result
Otherwise _mm_store_ps can fail
-rw-r--r--src/util/util_vector.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/util_vector.h b/src/util/util_vector.h
index 72797441..08fea02f 100644
--- a/src/util/util_vector.h
+++ b/src/util/util_vector.h
@@ -152,7 +152,7 @@ namespace dxvk {
inline Vector4 replaceNaN(Vector4 a) {
#ifdef DXVK_ARCH_X86
- Vector4 result;
+ alignas(16) Vector4 result;
__m128 value = _mm_loadu_ps(a.data);
__m128 mask = _mm_cmpeq_ps(value, value);
value = _mm_and_ps(value, mask);