From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DEEEC15800F for ; Fri, 3 Feb 2023 19:52:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 23850E07C5; Fri, 3 Feb 2023 19:52:06 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 065B4E07C5 for ; Fri, 3 Feb 2023 19:52:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2442D340D83 for ; Fri, 3 Feb 2023 19:52:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7E71975 for ; Fri, 3 Feb 2023 19:52:03 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1675453832.7b30162d5662f0ec77c702d7919e2ea3dacccd1c.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-util/basis_universal/, games-util/basis_universal/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-util/basis_universal/basis_universal-1.16.3.ebuild games-util/basis_universal/files/basis_universal-1.16.3-SSE4.1-AVX-checks.patch X-VCS-Directories: games-util/basis_universal/files/ games-util/basis_universal/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 7b30162d5662f0ec77c702d7919e2ea3dacccd1c X-VCS-Branch: master Date: Fri, 3 Feb 2023 19:52:03 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ec97cf74-b79a-4850-89ff-afe987cb3ae6 X-Archives-Hash: bc301dc9eed6229f887755f9a3e19537 commit: 7b30162d5662f0ec77c702d7919e2ea3dacccd1c Author: Sam James gentoo org> AuthorDate: Fri Feb 3 19:40:03 2023 +0000 Commit: Sam James gentoo org> CommitDate: Fri Feb 3 19:50:32 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b30162d games-util/basis_universal: fix build w/ AVX Closes: https://bugs.gentoo.org/892727 Signed-off-by: Sam James gentoo.org> .../basis_universal/basis_universal-1.16.3.ebuild | 1 + .../basis_universal-1.16.3-SSE4.1-AVX-checks.patch | 40 ++++++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/games-util/basis_universal/basis_universal-1.16.3.ebuild b/games-util/basis_universal/basis_universal-1.16.3.ebuild index 298c8ecdb705..239d01901831 100644 --- a/games-util/basis_universal/basis_universal-1.16.3.ebuild +++ b/games-util/basis_universal/basis_universal-1.16.3.ebuild @@ -24,6 +24,7 @@ RDEPEND="${RDEPEND}" PATCHES=( "${FILESDIR}"/${PN}-1.16.3-respect-CFLAGS.patch "${FILESDIR}"/${PN}-1.16.3-fix-RPATH.patch + "${FILESDIR}"/${PN}-1.16.3-SSE4.1-AVX-checks.patch ) src_configure() { diff --git a/games-util/basis_universal/files/basis_universal-1.16.3-SSE4.1-AVX-checks.patch b/games-util/basis_universal/files/basis_universal-1.16.3-SSE4.1-AVX-checks.patch new file mode 100644 index 000000000000..89be7b13482e --- /dev/null +++ b/games-util/basis_universal/files/basis_universal-1.16.3-SSE4.1-AVX-checks.patch @@ -0,0 +1,40 @@ +https://bugs.gentoo.org/892727 +https://github.com/BinomialLLC/basis_universal/issues/342 +https://github.com/BinomialLLC/basis_universal/pull/343 + +From e61fe1e4ff66decbb14f86a1bf8ec4ea40d23bbf Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= +Date: Tue, 31 Jan 2023 14:39:17 +0100 +Subject: [PATCH] SIMD: disable compile time checks + +SSE4.1 support is checked at runtime, so compile time checks are +redundant at best and harmful when compiling for a different machine. + +Further more, a logic error prevented the use of SSE4.1 on systems with +any version of AVX available. This is fixed now. +--- a/encoder/basisu_kernels_sse.cpp ++++ b/encoder/basisu_kernels_sse.cpp +@@ -22,22 +22,6 @@ + #include + #endif + +-#if !defined(_MSC_VER) +- #if __AVX__ || __AVX2__ || __AVX512F__ +- #error Please check your compiler options +- #endif +- +- #if CPPSPMD_SSE2 +- #if __SSE4_1__ || __SSE3__ || __SSE4_2__ || __SSSE3__ +- #error SSE4.1/SSE3/SSE4.2/SSSE3 cannot be enabled to use this file +- #endif +- #else +- #if !__SSE4_1__ || !__SSE3__ || !__SSSE3__ +- #error Please check your compiler options +- #endif +- #endif +-#endif +- + #include "cppspmd_sse.h" + + #include "cppspmd_type_aliases.h" +