https://bugs.gentoo.org/936296 https://invent.kde.org/graphics/krita/-/commit/cf2c74220b7edfae53a0715346cb4e2c7dfc38ae From cf2c74220b7edfae53a0715346cb4e2c7dfc38ae Mon Sep 17 00:00:00 2001 From: Dmitry Kazakov Date: Mon, 26 Aug 2024 14:38:03 +0200 Subject: [PATCH] Don't use xsimd::default_arch in the pixel scaler code Gentoo seems to build Krita with a global -march=znver4 flag, which causes "scalar" version of the code to be compiled with AVX512. Even though it is not how the system is supposed to work (and this avx512-optimization will never be used in real runtime), we shouldn't fail compilation. https://bugs.gentoo.org/936296 https://github.com/xtensor-stack/xsimd/issues/1044 --- a/libs/pigment/KoOptimizedPixelDataScalerU8ToU16.h +++ b/libs/pigment/KoOptimizedPixelDataScalerU8ToU16.h @@ -28,7 +28,7 @@ public: const int numColorChannels = m_channelsPerPixel * numColumns; #if defined(HAVE_XSIMD) && XSIMD_WITH_AVX2 - using uint16_avx_v = xsimd::batch; + using uint16_avx_v = xsimd::batch; using uint16_v = xsimd::batch; using uint8_v = xsimd::batch; @@ -129,7 +129,7 @@ public: const int numColorChannels = m_channelsPerPixel * numColumns; #if defined(HAVE_XSIMD) && XSIMD_WITH_AVX2 - using uint16_avx_v = xsimd::batch; + using uint16_avx_v = xsimd::batch; using uint16_v = xsimd::batch; const int channelsPerAvx2Block = 32; -- GitLab