[vlc-commits] [Git][videolan/vlc][master] contrib: aom: update to 3.9.1

Tristan Matthews (@tmatth) gitlab at videolan.org
Thu Jun 13 14:23:57 UTC 2024



Tristan Matthews pushed to branch master at VideoLAN / VLC


Commits:
99ba59df by Tristan Matthews at 2024-06-13T13:36:24+00:00
contrib: aom: update to 3.9.1

2024-06-05 v3.9.1
  This release includes several bug fixes. This release is ABI
  compatible with the last release. See
  https://aomedia.googlesource.com/aom/+log/v3.9.0..v3.9.1 for all the
  commits in this release.
  - Bug Fixes
    * aomedia:2754, aomedia:3567: Ensure thread stack size is at least
      256 KB
    * b:330639949, oss-fuzz:68195: Increase scaling in linsolve_wiener
    * Fix high target data rate overflow.
    * aomedia:3509: Fix two UBSan errors in av1_rc_update_framerate()
    * aomedia:3382, chromium:339877165: update codec config after
      svc/scale controls (CVE-2024-5493)
    * aomedia:3561: libaom-3.8.2 armv7 Android build failed
    * aomedia:3571: {,highbd_}intrapred_neon.c: Avoid over-reads in z1
      and z3 preds
    * aomedia:3578: libaom-3.9.0 undefined reference to
      `aom_sub_pixel_variance16xh_ssse3'
    * aomedia:3579: Use round for RC calculations in cyclic_refresh
    * aomedia:3580: Allow g_timebase.num to be greater than
      g_timebase.den
    * oss-fuzz:68774: libaom:av1_dec_fuzzer: Segv on unknown address in
      od_ec_dec_init
    * Arm SVE build fixes.
    * av1_block_error_lp_neon: fix block_size param type
    * av1_block_error_lp_sve: fix block_size param type

- - - - -


5 changed files:

- − contrib/src/aom/0001-cpu.cmake-Do-more-elaborate-test-of-whether-SVE-can-.patch
- − contrib/src/aom/0002-cmake-win-fix-asm-flag-appending.patch
- − contrib/src/aom/0002-cpu.cmake-Address-issues-in-SVE-feature-tests.patch
- contrib/src/aom/SHA512SUMS
- contrib/src/aom/rules.mak


Changes:

=====================================
contrib/src/aom/0001-cpu.cmake-Do-more-elaborate-test-of-whether-SVE-can-.patch deleted
=====================================
@@ -1,51 +0,0 @@
-From 17cb0f6be6807c73027cce0d941868b3e5ede54f Mon Sep 17 00:00:00 2001
-From: Martin Storsjo <martin at martin.st>
-Date: Wed, 1 May 2024 00:45:41 +0300
-Subject: [PATCH 1/2] cpu.cmake: Do more elaborate test of whether SVE can be
- compiled
-
-For Windows targets, Clang will successfully compile simpler
-SVE functions, but if the function requires backing up and restoring
-SVE registers (as part of the AAPCS calling convention), Clang
-will fail to generate unwind data for this function, resulting
-in an error.
-
-This issue is tracked upstream in Clang in
-https://github.com/llvm/llvm-project/issues/80009.
-
-Check whether the compiler can compile such a function, and
-disable SVE if it is unable to handle that case.
-
-Change-Id: I307d7398cedd1942c39ef034431a51696264ff47
-(cherry picked from commit 5ccdc66ab6eb8eb300eda854fab4ff250b2c2f92)
----
- build/cmake/cpu.cmake | 12 +++++++++++-
- 1 file changed, 11 insertions(+), 1 deletion(-)
-
-diff --git a/build/cmake/cpu.cmake b/build/cmake/cpu.cmake
-index 489dbcbf44..e16e9ec6a5 100644
---- a/build/cmake/cpu.cmake
-+++ b/build/cmake/cpu.cmake
-@@ -56,8 +56,18 @@ if("${AOM_TARGET_CPU}" STREQUAL "arm64")
- #endif
- #include <arm_sve.h>
- #include <arm_neon_sve_bridge.h>" HAVE_SVE_HEADERS)
-+    # Check whether the compiler can compile SVE functions that require
-+    # backup/restore of SVE registers according to AAPCS. Clang for Windows used
-+    # to fail this, see https://github.com/llvm/llvm-project/issues/80009.
-+    aom_check_source_compiles("arm_sve_preserve" "
-+#include <arm_sve.h>
-+void other(void);
-+svfloat32_t func(svfloat32_t a) {
-+  other();
-+  return a;
-+}" CAN_COMPILE_SVE)
-     set(CMAKE_REQUIRED_FLAGS ${OLD_CMAKE_REQURED_FLAGS})
--    if(HAVE_SVE_HEADERS EQUAL 0)
-+    if(HAVE_SVE_HEADERS EQUAL 0 OR CAN_COMPILE_SVE EQUAL 0)
-       set(ENABLE_SVE 0)
-       set(ENABLE_SVE2 0)
-     endif()
--- 
-2.34.1
-


=====================================
contrib/src/aom/0002-cmake-win-fix-asm-flag-appending.patch deleted
=====================================
@@ -1,29 +0,0 @@
-From f7e163fe374bdc5cc6031aec10f678434b8b991d Mon Sep 17 00:00:00 2001
-From: Tristan Matthews <tmatth at videolan.org>
-Date: Wed, 13 Sep 2023 13:17:23 -0400
-Subject: [PATCH 1/1] cmake: win: fix asm flag appending
-
-These were evaluating to e.g.:
-aarch64-w64-mingw32-gcc;-c;-mimplicit-it=always
-
-which broke the detection of the actual asm executable's presence.
----
- build/cmake/aom_configure.cmake | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/build/cmake/aom_configure.cmake b/build/cmake/aom_configure.cmake
-index aaef2c3..fe72e17 100644
---- a/build/cmake/aom_configure.cmake
-+++ b/build/cmake/aom_configure.cmake
-@@ -190,7 +190,7 @@ elseif(AOM_TARGET_CPU MATCHES "arm")
-     set(AOM_AS_FLAGS -arch ${AOM_TARGET_CPU} -isysroot ${CMAKE_OSX_SYSROOT})
-   elseif(AOM_TARGET_SYSTEM STREQUAL "Windows")
-     if(NOT CMAKE_ASM_COMPILER)
--      set(CMAKE_ASM_COMPILER ${CMAKE_C_COMPILER} -c -mimplicit-it=always)
-+      set(CMAKE_ASM_COMPILER ${CMAKE_C_COMPILER} "-c -mimplicit-it=always")
-     endif()
-   else()
-     if(NOT CMAKE_ASM_COMPILER)
--- 
-2.39.2
-


=====================================
contrib/src/aom/0002-cpu.cmake-Address-issues-in-SVE-feature-tests.patch deleted
=====================================
@@ -1,58 +0,0 @@
-From b349f7613350aa8a15c06470dc63c5d6a4a1222f Mon Sep 17 00:00:00 2001
-From: George Steed <george.steed at arm.com>
-Date: Sat, 4 May 2024 13:20:42 +0100
-Subject: [PATCH 2/2] cpu.cmake: Address issues in SVE feature tests
-
-A test to check that SVE registers were correctly handled as function
-parameters was added in 5ccdc66ab6eb8eb300eda854fab4ff250b2c2f92,
-however this appears to have a couple of issues:
-
-* Semicolons need to be escaped, else the compiler fails to compile due
-  to invalid syntax. We can fix this by prefixing each semicolon with a
-  backslash.
-
-* The "other" function does not have a definition so the test program
-  will always fail to link even if it compiles to an object file. We can
-  work around this by instructing CMake to only try compiling up to a
-  static library rather than a full executable.
-
-Change-Id: Ic37280d4b42b9031e68bed8a4b24c0eb51491827
-(cherry picked from commit fb21617c1f3ef49795597e006b68adfba6e54be0)
----
- build/cmake/cpu.cmake | 9 ++++++---
- 1 file changed, 6 insertions(+), 3 deletions(-)
-
-diff --git a/build/cmake/cpu.cmake b/build/cmake/cpu.cmake
-index e16e9ec6a5..8d0acf3d2b 100644
---- a/build/cmake/cpu.cmake
-+++ b/build/cmake/cpu.cmake
-@@ -49,7 +49,9 @@ if("${AOM_TARGET_CPU}" STREQUAL "arm64")
-   # SVE and SVE2 require that the Neon-SVE bridge header is also available.
-   if(ENABLE_SVE OR ENABLE_SVE2)
-     set(OLD_CMAKE_REQURED_FLAGS ${CMAKE_REQUIRED_FLAGS})
-+    set(OLD_CMAKE_TRY_COMPILE_TARGET_TYPE ${CMAKE_TRY_COMPILE_TARGET_TYPE})
-     set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} ${AOM_SVE_FLAG}")
-+    set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
-     aom_check_source_compiles("arm_neon_sve_bridge_available" "
- #ifndef __ARM_NEON_SVE_BRIDGE
- #error 1
-@@ -61,12 +63,13 @@ if("${AOM_TARGET_CPU}" STREQUAL "arm64")
-     # to fail this, see https://github.com/llvm/llvm-project/issues/80009.
-     aom_check_source_compiles("arm_sve_preserve" "
- #include <arm_sve.h>
--void other(void);
-+void other(void)\;
- svfloat32_t func(svfloat32_t a) {
--  other();
--  return a;
-+  other()\;
-+  return a\;
- }" CAN_COMPILE_SVE)
-     set(CMAKE_REQUIRED_FLAGS ${OLD_CMAKE_REQURED_FLAGS})
-+    set(CMAKE_TRY_COMPILE_TARGET_TYPE ${OLD_CMAKE_TRY_COMPILE_TARGET_TYPE})
-     if(HAVE_SVE_HEADERS EQUAL 0 OR CAN_COMPILE_SVE EQUAL 0)
-       set(ENABLE_SVE 0)
-       set(ENABLE_SVE2 0)
--- 
-2.34.1
-


=====================================
contrib/src/aom/SHA512SUMS
=====================================
@@ -1 +1 @@
-0793e0801be72d35144162141a180ff5e3ae11186f734af738b1eb2d81bff1364be7741cc34ae2507d2b88de11f840609a09f8b05b75e8d853aa80626241bf95  libaom-3.9.0.tar.gz
+d134583c9cc17e0c8e0dec17677a5daca6f42636f3cde83e1b0fc5250f7372f190c125afb845540cd947fb28462cc91b111a69ae4fec51946c3730cacf42c36e  libaom-3.9.1.tar.gz


=====================================
contrib/src/aom/rules.mak
=====================================
@@ -1,5 +1,5 @@
 # aom
-AOM_VERSION := 3.9.0
+AOM_VERSION := 3.9.1
 AOM_URL := https://storage.googleapis.com/aom-releases/libaom-$(AOM_VERSION).tar.gz
 
 PKGS += aom
@@ -14,9 +14,6 @@ $(TARBALLS)/libaom-$(AOM_VERSION).tar.gz:
 
 aom: libaom-$(AOM_VERSION).tar.gz .sum-aom
 	$(UNPACK)
-	$(APPLY) $(SRC)/aom/0002-cmake-win-fix-asm-flag-appending.patch
-	$(APPLY) $(SRC)/aom/0001-cpu.cmake-Do-more-elaborate-test-of-whether-SVE-can-.patch
-	$(APPLY) $(SRC)/aom/0002-cpu.cmake-Address-issues-in-SVE-feature-tests.patch
 	$(MOVE)
 
 DEPS_aom =



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/99ba59dfd81ab96d1dc52df8fafece0f94025e25

-- 
This project does not include diff previews in email notifications.
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/99ba59dfd81ab96d1dc52df8fafece0f94025e25
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list