Revert changes from main commits that were merged into blender-v4.1-release

The last good commit was f57e4c5b98.

After this one more fix was committed, this one is preserved as well:
67bd678887.
This commit is contained in:
Brecht Van Lommel
2024-03-18 14:49:11 +01:00
parent 4842bf1101
commit 7a395e2e7f
3443 changed files with 70508 additions and 264669 deletions

View File

@@ -0,0 +1,32 @@
/* SPDX-FileCopyrightText: 2011-2013 Intel Corporation
* SPDX-FileCopyrightText: 2014-2022 Blender Foundation
*
* SPDX-License-Identifier: Apache-2.0 */
#if (defined(WITH_KERNEL_SSE2)) || (defined(WITH_KERNEL_NATIVE) && defined(__SSE2__))
# define __KERNEL_SSE2__
# include "util/simd.h"
CCL_NAMESPACE_BEGIN
const __m128 _mm_lookupmask_ps[16] = {_mm_castsi128_ps(_mm_set_epi32(0, 0, 0, 0)),
_mm_castsi128_ps(_mm_set_epi32(0, 0, 0, -1)),
_mm_castsi128_ps(_mm_set_epi32(0, 0, -1, 0)),
_mm_castsi128_ps(_mm_set_epi32(0, 0, -1, -1)),
_mm_castsi128_ps(_mm_set_epi32(0, -1, 0, 0)),
_mm_castsi128_ps(_mm_set_epi32(0, -1, 0, -1)),
_mm_castsi128_ps(_mm_set_epi32(0, -1, -1, 0)),
_mm_castsi128_ps(_mm_set_epi32(0, -1, -1, -1)),
_mm_castsi128_ps(_mm_set_epi32(-1, 0, 0, 0)),
_mm_castsi128_ps(_mm_set_epi32(-1, 0, 0, -1)),
_mm_castsi128_ps(_mm_set_epi32(-1, 0, -1, 0)),
_mm_castsi128_ps(_mm_set_epi32(-1, 0, -1, -1)),
_mm_castsi128_ps(_mm_set_epi32(-1, -1, 0, 0)),
_mm_castsi128_ps(_mm_set_epi32(-1, -1, 0, -1)),
_mm_castsi128_ps(_mm_set_epi32(-1, -1, -1, 0)),
_mm_castsi128_ps(_mm_set_epi32(-1, -1, -1, -1))};
CCL_NAMESPACE_END
#endif // WITH_KERNEL_SSE2