Cycles: Increase minimum target on x86 to SSE4.2

* Compile regular host code with SSE4.2
* Remove the SSE2 kernel, only the SSE4.2 and AVX2 kernel remain

Pull Request: https://projects.blender.org/blender/blender/pulls/118471
This commit is contained in:
Thomas Dinges
2024-02-26 14:49:19 +01:00
committed by Thomas Dinges
parent f9e8f2d857
commit 2b095c97fa
21 changed files with 46 additions and 283 deletions

View File

@@ -1,32 +0,0 @@
/* 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