File tree Expand file tree Collapse file tree 2 files changed +18
-8
lines changed
RadeonRays/src/accelerator Expand file tree Collapse file tree 2 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -142,10 +142,10 @@ namespace RadeonRays
142
142
}
143
143
144
144
void Bvh2::BuildImpl (
145
- __m128 scene_min,
146
- __m128 scene_max,
147
- __m128 centroid_scene_min,
148
- __m128 centroid_scene_max,
145
+ __m128 MSVC_X86_ALIGNMENT_FIX scene_min,
146
+ __m128 MSVC_X86_ALIGNMENT_FIX scene_max,
147
+ __m128 MSVC_X86_ALIGNMENT_FIX centroid_scene_min,
148
+ __m128 MSVC_X86_ALIGNMENT_FIX centroid_scene_max,
149
149
const float3 *aabb_min,
150
150
const float3 *aabb_max,
151
151
const float3 *aabb_centroid,
Original file line number Diff line number Diff line change @@ -115,11 +115,21 @@ namespace RadeonRays
115
115
#endif // WIN32
116
116
}
117
117
118
+ #if defined(_MSC_VER)
119
+ #if defined(_WIN32)
120
+ #if defined(_WIN64)
121
+ #define MSVC_X86_ALIGNMENT_FIX
122
+ #else
123
+ #define MSVC_X86_ALIGNMENT_FIX &
124
+ #endif
125
+ #endif
126
+ #endif
127
+
118
128
void BuildImpl (
119
- __m128 scene_min,
120
- __m128 scene_max,
121
- __m128 centroid_scene_min,
122
- __m128 centroid_scene_max,
129
+ __m128 MSVC_X86_ALIGNMENT_FIX scene_min,
130
+ __m128 MSVC_X86_ALIGNMENT_FIX scene_max,
131
+ __m128 MSVC_X86_ALIGNMENT_FIX centroid_scene_min,
132
+ __m128 MSVC_X86_ALIGNMENT_FIX centroid_scene_max,
123
133
const float3 *aabb_min,
124
134
const float3 *aabb_max,
125
135
const float3 *aabb_centroid,
You can’t perform that action at this time.
0 commit comments