From patchwork Thu Sep 3 06:29:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shiyou Yin X-Patchwork-Id: 22074 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id B9B3F44B0FA for ; Thu, 3 Sep 2020 09:30:19 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A1B1568A9AA; Thu, 3 Sep 2020 09:30:19 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1804F6883C9 for ; Thu, 3 Sep 2020 09:30:01 +0300 (EEST) Received: from localhost (unknown [36.33.26.144]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9Dxz9xhjVBfMlEQAA--.1706S3; Thu, 03 Sep 2020 14:29:53 +0800 (CST) From: Shiyou Yin To: ffmpeg-devel@ffmpeg.org Date: Thu, 3 Sep 2020 14:29:52 +0800 Message-Id: <1599114592-21832-2-git-send-email-yinshiyou-hf@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1599114592-21832-1-git-send-email-yinshiyou-hf@loongson.cn> References: <1599114592-21832-1-git-send-email-yinshiyou-hf@loongson.cn> X-CM-TRANSID: AQAAf9Dxz9xhjVBfMlEQAA--.1706S3 X-Coremail-Antispam: 1UD129KBjvJXoW7WFy3Zr4xWF1fXrWUAF1rCrg_yoW8GrWkpr 1fJ3WrKr48JFy09anrJrW8ur1UC3y5KFZ7AFsrKw18X390y345urnaqF4xZF17X3s8u342 qF4IkF1UKFWUC3JanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUkFb7Iv0xC_Kw4lb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Gr0_Xr1l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwV C2z280aVCY1x0267AKxVWxJr0_GcWle2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xv F2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_JF0_Jw1lYx0Ex4A2jsIE14v26r4j6F 4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCY02Avz4vE14v_GF1l42xK 82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGw C20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r1j6r15MIIYrxkI7VAKI48J MIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMI IF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E 87Iv6xkF7I0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x07b289_UUUUU= X-CM-SenderInfo: p1lq2x5l1r3gtki6z05rqj20fqof0/ Subject: [FFmpeg-devel] [PATCH 2/2] Fix msa can't be disabled when '--cpu=loongson3a' assigned. X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" There are compiler and runtime check for MSA and MMI. Remove the redundant setting of MSA and MMI for cores specified by "--cpu". Signed-off-by: Shiyou Yin --- configure | 9 --------- 1 file changed, 9 deletions(-) diff --git a/configure b/configure index 5640720..7f103fa 100755 --- a/configure +++ b/configure @@ -5025,8 +5025,6 @@ elif enabled mips; then disable loongson3 disable mipsdsp disable mipsdspr2 - disable msa - disable mmi cpuflags="-march=$cpu" @@ -5035,17 +5033,13 @@ elif enabled mips; then mips1|mips3) ;; mips32r2) - enable msa enable mips32r2 ;; mips32r5) - enable msa enable mips32r2 enable mips32r5 ;; mips64r2|mips64r5) - enable msa - enable mmi enable mips64r2 enable loongson3 ;; @@ -5062,7 +5056,6 @@ elif enabled mips; then enable mips32r2 ;; p5600) - enable msa enable mips32r2 enable mips32r5 check_cflags "-mtune=p5600" && check_cflags "-msched-weight -mload-store-pairs -funroll-loops" @@ -5077,7 +5070,6 @@ elif enabled mips; then ;; # Cores from Loongson loongson2e|loongson2f|loongson3*) - enable mmi enable local_aligned enable simd_align_16 enable fast_64bit @@ -5100,7 +5092,6 @@ elif enabled mips; then case $cpu in loongson3*) enable loongson3 - enable msa cpuflags="-march=loongson3a -mhard-float $expensive_optimization_flag" ;; loongson2e)