From patchwork Tue May 7 18:10:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?R=C3=A9mi_Denis-Courmont?= X-Patchwork-Id: 48644 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:9c99:b0:1af:836d:81b3 with SMTP id mj25csp80592pzb; Tue, 7 May 2024 11:11:33 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUOZ6VhMToP8kvDySjpXznrobR+tjtj0C98WLig6Y8FYPIybVuJ7r+xpjOrxBYk4MzRKM7Y/dNGhRT21hEMqAfacU2qE1XCcrHXtw== X-Google-Smtp-Source: AGHT+IHRFWooyQgP0Bx8Ut/b6aem2x4zURr8jM63oVaXi6wRQ5Ws0KeNXkFk5VAb59tRWjjn0kqn X-Received: by 2002:a05:6402:4495:b0:572:cfa4:57ea with SMTP id 4fb4d7f45d1cf-5731da69693mr291688a12.4.1715105493630; Tue, 07 May 2024 11:11:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1715105493; cv=none; d=google.com; s=arc-20160816; b=coZh7Wh3H1PiY624Z4ULKnmcXDXG6qWCj4Sm/OnRQQfvMEcx1ZS8zQ8LweWevOXsQE gjn0wI6JLrNlhC+il+Cb6HRqbpE73BnOPNEfquSM0IawdMKeaN4Tot2TdcYmzIwDwzLL z2LDH2oO8W0i0y114K+Fj7nTLnzUsBr/P4lf7KN8IcjzhIWiWETxSMkmzxQ2jbm0C0mh mqi/mZQ5m+t+/+jEek37q42NORwwfiHCe4PSyG6lU+OzjlffIVJfKdX7Tw8tFJRG66sb rtO0q1fEJjq5jJepEzeLvYLC82VWfPjlXSL73qCRF7PnfXBd3cOTzvcFfgv+7wRBLOtv gQqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:delivered-to; bh=rmFUjORdRuQb6XAgQtQVsJMWHY7TJf2qTJItjzW6T2Y=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=aa7IooEi8drYyf9oPZWDxjpers9xZO0STEPj+wtco7rM5BV0TpodJzPTvx5Zl6mRQP tOMyjYpNUAG1wp+NCjr9XTpldw4/wApZncSK6raY13BsixjWOi23C8pZsJS3q7ltRHUV 7Ht3XIYynPyc1FbPjsE9MiuUrBUedoMCl55UTDj4VQHmodbvNXDPHL3KUbazWo4e4NYU DpNcboYaGRtePqDv+uB/yQ7Bk5QIz6szm6aQLLnJZug9ccNG7K5sU/vD32cDKjQoe+Hc ZpGHYGvtsCiXVRmrXIRQ9jVXtrx2S1hhAF7VVuSJQFJpQwNWbH6AFo2RQ1GhdMwumvNu 3IDw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id l19-20020a056402125300b005729fca3cf0si5981756edw.628.2024.05.07.11.11.11; Tue, 07 May 2024 11:11:33 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5E88868D67C; Tue, 7 May 2024 21:11:08 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from ursule.remlab.net (vps-a2bccee9.vps.ovh.net [51.75.19.47]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E4E4968D3F3 for ; Tue, 7 May 2024 21:11:01 +0300 (EEST) Received: from basile.remlab.net (localhost [IPv6:::1]) by ursule.remlab.net (Postfix) with ESMTP id 71593C0186 for ; Tue, 7 May 2024 21:11:01 +0300 (EEST) From: =?utf-8?q?R=C3=A9mi_Denis-Courmont?= To: ffmpeg-devel@ffmpeg.org Date: Tue, 7 May 2024 21:10:59 +0300 Message-ID: <20240507181101.33385-2-remi@remlab.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240507181101.33385-1-remi@remlab.net> References: <20240507181101.33385-1-remi@remlab.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/4] lavc/riscv: explicitly require Zbb for MIN X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: T+ggdgwRqXO7 --- libavcodec/riscv/aacpsdsp_rvv.S | 2 +- libavcodec/riscv/opusdsp_rvv.S | 2 +- libavcodec/riscv/sbrdsp_rvv.S | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libavcodec/riscv/aacpsdsp_rvv.S b/libavcodec/riscv/aacpsdsp_rvv.S index a79d7d7818..2d6858688a 100644 --- a/libavcodec/riscv/aacpsdsp_rvv.S +++ b/libavcodec/riscv/aacpsdsp_rvv.S @@ -207,7 +207,7 @@ func ff_ps_hybrid_synthesis_deint_rvv, zve64x ret endfunc -func ff_ps_stereo_interpolate_rvv, zve32f +func ff_ps_stereo_interpolate_rvv, zve32f, zbb vsetvli t0, zero, e32, m2, ta, ma vid.v v24 flw ft0, (a2) diff --git a/libavcodec/riscv/opusdsp_rvv.S b/libavcodec/riscv/opusdsp_rvv.S index 9a8914c78d..42d845a370 100644 --- a/libavcodec/riscv/opusdsp_rvv.S +++ b/libavcodec/riscv/opusdsp_rvv.S @@ -20,7 +20,7 @@ #include "libavutil/riscv/asm.S" -func ff_opus_postfilter_rvv, zve32f +func ff_opus_postfilter_rvv, zve32f, zbb flw fa0, 0(a2) // g0 slli t1, a1, 2 flw fa1, 4(a2) // g1 diff --git a/libavcodec/riscv/sbrdsp_rvv.S b/libavcodec/riscv/sbrdsp_rvv.S index 02feb6451e..918c37882f 100644 --- a/libavcodec/riscv/sbrdsp_rvv.S +++ b/libavcodec/riscv/sbrdsp_rvv.S @@ -290,16 +290,16 @@ endfunc ret .endm -func ff_sbr_hf_apply_noise_0_rvv, zve32f +func ff_sbr_hf_apply_noise_0_rvv, zve32f, zbb hf_apply_noise 0 endfunc -func ff_sbr_hf_apply_noise_3_rvv, zve32f +func ff_sbr_hf_apply_noise_3_rvv, zve32f, zbb not a4, a4 // invert parity of kx // fall through endfunc -func ff_sbr_hf_apply_noise_1_rvv, zve32f +func ff_sbr_hf_apply_noise_1_rvv, zve32f, zbb vsetvli t0, zero, e32, m4, ta, ma vid.v v4 vxor.vx v4, v4, a4 @@ -307,6 +307,6 @@ func ff_sbr_hf_apply_noise_1_rvv, zve32f hf_apply_noise 1 endfunc -func ff_sbr_hf_apply_noise_2_rvv, zve32f +func ff_sbr_hf_apply_noise_2_rvv, zve32f, zbb hf_apply_noise 2 endfunc