From patchwork Thu Aug 1 19:59:17 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: 50869 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:12d6:0:b0:489:2eb3:e4c4 with SMTP id 205csp1397985vqs; Thu, 1 Aug 2024 13:06:59 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXnp26138jGPh0zYm6ohvFoThAl2e8LdqsSL5Yxk2lJOk2uTirMvsoIZA4SjN+/5eVd5mg03r/nMKaB84k6mrgXQIAebpbxkNauOA== X-Google-Smtp-Source: AGHT+IEgPH11LHqs3Wec/lBwACbXRK5z6vXAz31BQ+WAL3+fEFnhW2NpPFe+2lFgxUOw4//lOMzA X-Received: by 2002:aa7:c449:0:b0:5b4:d025:b9f1 with SMTP id 4fb4d7f45d1cf-5b7f36f5703mr1074603a12.6.1722542819475; Thu, 01 Aug 2024 13:06:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1722542819; cv=none; d=google.com; s=arc-20160816; b=Jphrxb9iV3OOKYflLp06yXfUxZJWff5kK2214eDNJYhsSNlrLLbXCBhQO9dg280cXP tX1UdCOVZ7jHQwJAK2xBpzTLk7t4btoOxs/6q9+1wfqTmsayBlyfGqveGDlJ3NlJwJON 7b2WXsFTlUDPHflO0BEKDDIXesaWWfAdO2inP9yCNDGbbcS2SOAf/OZkRWivRbNHm7uj WVnhF4WKfEr2dNjTixXFFh8xnkS363yuDa6bmeNG9TN4ZLEMovP2t+52qiKGNMzvPQZt adejiHs//JM/8Z2db56lJaxB/jpK3CvXzO9MlE6fgqnNoIc8f7MO32C2g3TaTUNnyWiz I7Cw== 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=1x4GYjj7TzxB8c1Gtv0AgqpdYWjGaaYPZ70TrYaU6JU=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=Pt0XrJg0pDSPHmN+oWoyKrcpwKQLybmx/ahETb8g+we8nPbha9752p82HRb34YFwqF 8P6LlBdt2pMFRMcuHy9j+kFayjH7qnR96wGZttOSkE5AdxG9kwizXomMH53tHwDVP0g5 MGJMNV0PnJo4gc9MXT5nB9dTJUgJaAEMENRK0uzp3zyZqzNyQd9aczPKP/ui1kplnvgC AgffCIZ6igukBnucbiN4FI7C4GR6rAbqpvRpcMrDr+30+KOxcARW4sWewVxr1vZcRqMg 5BQtUA5CtKrmA+hfjRujYBl1ZjvDpi3PAQUH26aSird3rs9CYlh5XDFo6f01pRYdt4wy w25A==; 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 4fb4d7f45d1cf-5b83b935621si162356a12.336.2024.08.01.13.06.59; Thu, 01 Aug 2024 13:06:59 -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 319FA68D963; Thu, 1 Aug 2024 22:59:32 +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 D714368D93C for ; Thu, 1 Aug 2024 22:59:23 +0300 (EEST) Received: from basile.remlab.net (localhost [IPv6:::1]) by ursule.remlab.net (Postfix) with ESMTP id 940FCC03FD for ; Thu, 1 Aug 2024 22:59:18 +0300 (EEST) From: =?utf-8?q?R=C3=A9mi_Denis-Courmont?= To: ffmpeg-devel@ffmpeg.org Date: Thu, 1 Aug 2024 22:59:17 +0300 Message-ID: <20240801195917.43555-6-remi@remlab.net> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240801195917.43555-1-remi@remlab.net> References: <20240801195917.43555-1-remi@remlab.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 6/6] lavu/cpu: deprecate RISC-V F, D and zba CPU flags 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: E+AI8mR0bIBK --- doc/APIchanges | 4 ++++ libavutil/cpu.h | 5 +++++ libavutil/version.h | 3 ++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/APIchanges b/doc/APIchanges index 6937718e83..046828ded1 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -2,6 +2,10 @@ The last version increases of all libraries were on 2024-03-07 API changes, most recent first: +2024-07-30 - xxxxxxxxx - lavu 59.32.100 - cpu.h + Deprecate AV_CPU_FLAG_RVF and AV_CPU_FLAG_RVD without replacement. + Deprecate AV_CPU_FLAG_RVB_ADDR, subsumed into AV_CPU_FLAG_RVB. + 2024-07-29 - xxxxxxxxx - lavu 59.31.100 - intreadwrite.h Add AV_{R,W}{L,B}{16,32}A and AV_{R,W}B64A. diff --git a/libavutil/cpu.h b/libavutil/cpu.h index 9f419aae02..ba6c234e04 100644 --- a/libavutil/cpu.h +++ b/libavutil/cpu.h @@ -22,6 +22,7 @@ #define AVUTIL_CPU_H #include +#include "version.h" #define AV_CPU_FLAG_FORCE 0x80000000 /* force usage of selected flags (OR) */ @@ -82,14 +83,18 @@ // RISC-V extensions #define AV_CPU_FLAG_RVI (1 << 0) ///< I (full GPR bank) +#if FF_API_RISCV_FD_ZBA #define AV_CPU_FLAG_RVF (1 << 1) ///< F (single precision FP) #define AV_CPU_FLAG_RVD (1 << 2) ///< D (double precision FP) +#endif #define AV_CPU_FLAG_RVV_I32 (1 << 3) ///< Vectors of 8/16/32-bit int's */ #define AV_CPU_FLAG_RVV_F32 (1 << 4) ///< Vectors of float's */ #define AV_CPU_FLAG_RVV_I64 (1 << 5) ///< Vectors of 64-bit int's */ #define AV_CPU_FLAG_RVV_F64 (1 << 6) ///< Vectors of double's #define AV_CPU_FLAG_RVB_BASIC (1 << 7) ///< Basic bit-manipulations +#if FF_API_RISCV_FD_ZBA #define AV_CPU_FLAG_RVB_ADDR (1 << 8) ///< Address bit-manipulations +#endif #define AV_CPU_FLAG_RV_ZVBB (1 << 9) ///< Vector basic bit-manipulations #define AV_CPU_FLAG_RV_MISALIGNED (1 <<10) ///< Fast misaligned accesses #define AV_CPU_FLAG_RVB (1 <<11) ///< B (bit manipulations) diff --git a/libavutil/version.h b/libavutil/version.h index 24418600f0..aa2b3900ee 100644 --- a/libavutil/version.h +++ b/libavutil/version.h @@ -79,7 +79,7 @@ */ #define LIBAVUTIL_VERSION_MAJOR 59 -#define LIBAVUTIL_VERSION_MINOR 31 +#define LIBAVUTIL_VERSION_MINOR 32 #define LIBAVUTIL_VERSION_MICRO 100 #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \ @@ -113,6 +113,7 @@ #define FF_API_VULKAN_CONTIGUOUS_MEMORY (LIBAVUTIL_VERSION_MAJOR < 60) #define FF_API_H274_FILM_GRAIN_VCS (LIBAVUTIL_VERSION_MAJOR < 60) #define FF_API_MOD_UINTP2 (LIBAVUTIL_VERSION_MAJOR < 60) +#define FF_API_RISCV_FD_ZBA (LIBAVUTIL_VERSION_MAJOR < 60) /** * @}