Граф коммитов

297 Коммитов

Автор SHA1 Сообщение Дата
Chun-Min Chang 221b7744a7 Bug 1894408 - Import and build macOS/arm64 code in libvpx r=media-playback-reviewers,padenot
This patch includes the macOS/arm64 code within libvpx through a
two-step process:

1. Integration of macOS/arm64 code in the same revision

(1) Change `revision` in moz.yaml to a random string.
(2) Add code in the same revision via
```
./mach vendor media/libvpx/moz.yaml -r   \
85dafa9c61f99330f484e77297684b42af6ff37d \
--patch-mode=none --ignore-modified
```
(3) Undo the changes for `revision` in moz.yaml

2. Local patch application: Run the command below
```
./mach vendor media/libvpx/moz.yaml --patch-mode=only
```

Consequently, this enables the inclusion and successful building of
macOS/arm64 code within the libvpx library, and facilitating its
integration with Gecko.

Differential Revision: https://phabricator.services.mozilla.com/D209086
2024-05-02 22:25:29 +00:00
Chun-Min Chang 593de4f5fe Bug 1894408 - Introduce macOS/arm64 platform configuration to libvpx r=media-playback-reviewers,padenot
This patch introduces platform configurations for macOS/arm64 to our
libvpx library. It also updates the moz.build file to ensure the correct
building of the code generated by these configurations.

Note that the mac/arm64 configuration here doesn't apply realtime-only
feature like other arm64 platforms. The realtime-related settings (e.g.,
lag_in_frames) will be set if needed.

Differential Revision: https://phabricator.services.mozilla.com/D209085
2024-05-02 22:25:28 +00:00
Chun-Min Chang e7239b67a6 Bug 1891458 - Apply local patches r=media-playback-reviewers,padenot
This patch runs `./mach vendor media/libvpx/moz.yaml --patch-mode=only`
to apply local patches.

Depends on D207807

Differential Revision: https://phabricator.services.mozilla.com/D207808
2024-04-18 15:58:08 +00:00
Chun-Min Chang e1d94bc620 Bug 1891458 - Update arm-cpu-runtime-detection patch r=media-playback-reviewers,padenot
The aarch64_cpudetect.c has been updated by the previous patch.
Consequently, the arm-cpu-runtime-detection patch modifying this file
should also be adjusted accordingly.

Depends on D207806

Differential Revision: https://phabricator.services.mozilla.com/D207807
2024-04-18 15:58:08 +00:00
Chun-Min Chang 61521428c9 Bug 1891458 - Update libvpx to 85dafa9c61f99330f484e77297684b42af6ff37d r=media-playback-reviewers,padenot
This patch runs `./mach vendor media/libvpx/moz.yaml --patch-mode=none`
to update libvpx to 85dafa9c61f99330f484e77297684b42af6ff37d.

Depends on D207805

Differential Revision: https://phabricator.services.mozilla.com/D207806
2024-04-18 15:58:07 +00:00
Chun-Min Chang 61c284e79f Bug 1891458 - Remove missing_header patch r=media-playback-reviewers,padenot
The missing_header patch has been uplifted and merged in the upstream
[1], so there is no need to patch it locally.

[1] https://chromium-review.googlesource.com/c/webm/libvpx/+/5425372

Differential Revision: https://phabricator.services.mozilla.com/D207805
2024-04-18 15:58:07 +00:00
Chun-Min Chang be484e5383 Bug 1886378 - Update linux/aarch64 sources to SVE-disabled version r=glandium
This patch updates the linux/aarch64 sources in our code base to the
SVE-disabled version. The commit version remains at 7fb8cec.

Differential Revision: https://phabricator.services.mozilla.com/D206720
2024-04-16 16:37:25 +00:00
Chun-Min Chang 6f46fb6bb4 Bug 1886378 - Include vpx_config.c directly in source list r=glandium
Initially, *vpx_config.c* on various platform-architecture combinations
was revmoed from the input list for source list generation and later
added to the source list in moz.build. This was necessary because the
generated list was based solely on architecture, while the vpx_config.c
differed across platform-architecture combinations.

With the source list generation reworked in the previous patch, each
platform-architecture combination now has its own list. Therefore,
vpx_config.c can be directly included in the source list, simplifying
the process.

Differential Revision: https://phabricator.services.mozilla.com/D207183
2024-04-16 16:37:25 +00:00
Chun-Min Chang cdc4ec7b80 Bug 1886378 - Rework source-list generation across platforms and architectrues r=glandium
Previously, source lists on different platforms were generated solely
based on architecture. Each architecture's source list would be copied
to lists on various platforms with the same architecture, with
modifications as necessary. However, with recently divergent settings
for platforms sharing the same architecture, maintaining a single list
and modifying it across different platforms becomes cumbersome.

To streamline this process and accommodate differing platform-specific
settings, this patch introduces a new approach. It generates source
lists for each platform-architecture combination. Consequently, source
lists for all platform-architecture combinations can be directly copied
without subsequent modifications. This simplifies maintenance across
different platforms and architectures.

Differential Revision: https://phabricator.services.mozilla.com/D206719
2024-04-16 16:37:24 +00:00
Chun-Min Chang 3f09a6a1c0 Bug 1886378 - Disable SVE on linux/aarch64 r=glandium
This patch, akin to D204798 in bug 1880814 [1, 2], disables the SVE
features on the Linux/AArch64 platform.

[1] https://phabricator.services.mozilla.com/D204798
[2] https://hg.mozilla.org/mozilla-central/rev/d3a921beb422

Differential Revision: https://phabricator.services.mozilla.com/D206718
2024-04-16 16:37:24 +00:00
Chun-Min Chang 35328c8ac4 Bug 1888772 - Apply ARM-CPU-runtime-detection patch r=media-playback-reviewers,padenot
This patch is the result running the command below
```
./mach vendor media/libvpx/moz.yaml --patch-mode=only --ignore-modified
```
with arm_cpu_runtime_detection_code_on_openbsd.patch in moz.yaml's
patches list only (other patches are temporarily removed during the
updating process).

Depends on D206409

Differential Revision: https://phabricator.services.mozilla.com/D206410
2024-04-03 16:07:48 +00:00
Chun-Min Chang 73367c096d Bug 1888772 - Add arm-cpu-runtime-detection patch to moz.yaml r=media-playback-reviewers,padenot
Depends on D206408

Differential Revision: https://phabricator.services.mozilla.com/D206409
2024-04-03 16:07:47 +00:00
Chun-Min Chang 209358d9cf Bug 1888772 - Import ARM-CPU-runtime-detection-on-OpenBSD patch r=media-playback-reviewers,padenot
This patch imports the fix to build ARM CPU runtime detection code on
OpenBSD [1] to our code base.

[1] https://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/multimedia/libvpx/patches/patch-vpx_ports_aarch64_cpudetect_c?rev=1.1&content-type=text/x-cvsweb-markup

Differential Revision: https://phabricator.services.mozilla.com/D206408
2024-04-03 16:07:47 +00:00
Mike Hommey 3583f8462a Bug 1886318 - Add missing header for EBUSY on mingw. r=media-playback-reviewers,karlt
Differential Revision: https://phabricator.services.mozilla.com/D205669
2024-03-26 04:38:30 +00:00
Chun-Min Chang c7a69aed78 Bug 1880814 - Apply local patches r=media-playback-reviewers,alwu
This patch runs
```
./mach vendor media/libvpx/moz.yaml --patch-mode=only
```
to apply local patches.

Differential Revision: https://phabricator.services.mozilla.com/D204804
2024-03-19 23:22:54 +00:00
Chun-Min Chang 904440fbb0 Bug 1880814 - Adjust input_frame_validation.patch r=media-playback-reviewers,alwu
The input_frame_validation.patch has to be adjusted to meet the latest
vp8_cx_iface.c

Differential Revision: https://phabricator.services.mozilla.com/D204803
2024-03-19 23:22:53 +00:00
Chun-Min Chang 9ed06e0f8f Bug 1880814 - Update libvpx to 7fb8ceccf92c35cd5131b05c0502916715ebc76b r=media-playback-reviewers,alwu
This patch runs
```
./mach vendor media/libvpx/moz.yaml --patch-mode=none
```
to update libvpx to 7fb8cec

Differential Revision: https://phabricator.services.mozilla.com/D204802
2024-03-19 23:22:53 +00:00
Chun-Min Chang 0395845afd Bug 1880814 - Remove files ending with *_sve.c* on win/aarch64 r=glandium
This patch removes the sve-related files from libvpx sources on Windows
AArch64 platforms. The SVE-feature was disabled on the previous patch.

Differential Revision: https://phabricator.services.mozilla.com/D204801
2024-03-19 23:22:52 +00:00
Chun-Min Chang d2d99b1589 Bug 1880814 - Port the cflags from Makefile to moz.build r=glandium
The cflags for sve features are introduced on arm platforms in this
patch. These settings are brought from libvpx's Makefile.

[1] 7fb8ceccf9/build/make/Makefile (151)

Differential Revision: https://phabricator.services.mozilla.com/D204800
2024-03-19 23:22:52 +00:00
Chun-Min Chang 3e9e678d7e Bug 1880814 - Logs for libvpx configuration on various platforms r=glandium
This patch generates log files during the configuration of libvpx on
variouse platforms. These logs can be used for manual verification of
the correctness of settings. In this particular case, the log file for
win/aarch64 reveals the sve feature is disabled on win/aarch64.

The logs will be excluded to the repo, by .gitignore and .hgignore
settings.

Differential Revision: https://phabricator.services.mozilla.com/D204799
2024-03-19 23:22:51 +00:00
Chun-Min Chang cb56000349 Bug 1880814 - Disable SVE on win/aarch64 r=glandium
This patch disables the SVE features on win/aarch64 platform.

1. According to libvpx setting scripts [1, 2], the sve feature in config
   file can be disabled by adding `--disable-sve` option when running
   the *configure* script.
2. According to *rtcd.pl* [3], the SVE-related function in headers
   ending with *_rtcd.h* can be removed by `--disable-sve` option.

[1] 7fb8ceccf9/build/make/Android.mk (38)
[2] 7fb8ceccf9/build/make/configure.sh (1262)
[3] 7fb8ceccf9/build/make/rtcd.pl (525)

Differential Revision: https://phabricator.services.mozilla.com/D204798
2024-03-19 23:22:51 +00:00
Nicolas Chevobbe ece8d8e383 Bug 1879352 - Remove libvpx .orig files. r=padenot. DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D201100
2024-02-08 16:50:42 +00:00
Chun-Min Chang 9a7f690f46 Bug 1865694 - Update libvpx to f6b7166a2b6bac544c2c487d3a7e49bc265cdf9d r=webrtc-reviewers,pehrsons
This patch updates libvpx by two steps:

1. ./mach vendor media/libvpx/moz.yaml --patch-mode=none
2. ./mach vendor media/libvpx/moz.yaml --patch-mode=only

The first step pulls the upstream repo files to gecko, and the second
step applies the local patches.

Differential Revision: https://phabricator.services.mozilla.com/D197546
2024-01-03 16:07:31 +00:00
Paul Adenot 00049adfc8 Bug 1869332 - Remove .orig files that crept in. r=chunmin
Drive-by, nothing to do with this bug.

Depends on D196060

Differential Revision: https://phabricator.services.mozilla.com/D196061
2023-12-20 02:32:37 +00:00
Narcis Beleuzu 0f250fb8c2 Backed out 7 changesets (bug 1869332) for Android bustages. CLOSED TREE
Backed out changeset e1a7852ec85a (bug 1869332)
Backed out changeset 886e59d6495f (bug 1869332)
Backed out changeset 03ac3598f84f (bug 1869332)
Backed out changeset 5e775f2c2b9c (bug 1869332)
Backed out changeset 295a1e1f01d5 (bug 1869332)
Backed out changeset 2909ac6aeb41 (bug 1869332)
Backed out changeset dfab47873174 (bug 1869332)
2023-12-19 18:52:01 +02:00
Paul Adenot 35a2409f61 Bug 1869332 - Remove .orig files that crept in. r=chunmin
Drive-by, nothing to do with this bug.

Differential Revision: https://phabricator.services.mozilla.com/D196061
2023-12-19 15:21:52 +00:00
Noemi Erli 862354d813 Backed out 7 changesets (bug 1869332) for causing libavcodec related bustages CLOSED TREE
Backed out changeset 1c0fd259312d (bug 1869332)
Backed out changeset d51eba30a225 (bug 1869332)
Backed out changeset 483d3f275da7 (bug 1869332)
Backed out changeset c401449274b4 (bug 1869332)
Backed out changeset c83313202040 (bug 1869332)
Backed out changeset 00ceb6e47715 (bug 1869332)
Backed out changeset 5acc2f4f12c2 (bug 1869332)
2023-12-14 12:02:45 +02:00
Paul Adenot e4602171c8 Bug 1869332 - Remove .orig files that crept in. r=chunmin
Drive-by, nothing to do with this bug.

Differential Revision: https://phabricator.services.mozilla.com/D196061
2023-12-14 09:12:34 +00:00
Stanca Serban d84ca52ee4 Backed out 6 changesets (bug 1869332) for causing build bustages. CLOSED TREE
Backed out changeset 4f8c19f9dfcf (bug 1869332)
Backed out changeset 661e520c2991 (bug 1869332)
Backed out changeset 74e2acabc439 (bug 1869332)
Backed out changeset 1c4b5311ac03 (bug 1869332)
Backed out changeset af22bc552759 (bug 1869332)
Backed out changeset f557e130d997 (bug 1869332)
2023-12-13 18:13:24 +02:00
Paul Adenot 090d5b5388 Bug 1869332 - Remove .orig files that crept in. r=chunmin
Drive-by, nothing to do with this bug.

Differential Revision: https://phabricator.services.mozilla.com/D196061
2023-12-13 13:46:41 +00:00
Mike Hommey 619672a8e4 Bug 1867459 - Replace CPU_ARCH with TARGET_CPU. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D195157
2023-12-08 10:43:59 +00:00
Chun-Min Chang 958a88c0ed Bug 1864008 - Move libvpx to libgkcodecs, part 1 r=media-playback-reviewers,glandium,alwu,padenot
This patch is the first part that moves libvpx from libgkmedias to
libgkcodecs.

When `ac_add_options --with-system-libvpx` (and `--without-sysroot` if
needed) is set in mozconfig (MOZ_SYSTEM_LIBVPX case), the libvpx
installed in the system will be used and the media/libvpx won't be
built, so the libvpx APIs shouldn't be exposed via gkcodecs' symbols in
this case.

With the changes, the "vpx/..." headers `#include`d in the VPX
encoders should be replaced with system headers like `<vpx/...>`
instead. While the VPX headers under dom/media are updated in this
patch, those headers under third_party/libwebrtc are set in a different
way in the following patches.

Since libpixman needs android_getCpuFeatures and _getCpuFamily APIs,
which were built by libvpx previously, cpu-features.c now is required to
be included in its moz.build to get the API it needs.

Differential Revision: https://phabricator.services.mozilla.com/D193599
2023-12-05 20:08:22 +00:00
Chun-Min Chang 80d285c480 Bug 1864008 - Build libvpx with platform-specific vpx_config.c r=media-playback-reviewers,glandium,karlt
This patch brings the platform-specific `vpx_codec_build_config`
implementation into libvpx since it will be used and exposed in the
following patches.

Differential Revision: https://phabricator.services.mozilla.com/D193598
2023-12-05 20:08:21 +00:00
Chun-Min Chang bf30345a7b Bug 1860623 - Update libvpx to b759032a0ed2b57ea3412f6820eda377a2dad480 r=webrtc-reviewers,ng
This patch updates libvpx by two steps:
1. ./mach vendor media/libvpx/moz.yaml --patch-mode=none
2. ./mach vendor media/libvpx/moz.yaml --patch-mode=only

The first step pulls the upstream repo files to gecko, and the second
step applies the local patches.

Differential Revision: https://phabricator.services.mozilla.com/D192108
2023-10-31 00:53:08 +00:00
Andreas Pehrson 4badb41d37 Bug 1836826 - Build libvpx with dotprod and i8mm cpu features as needed. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D190451
2023-10-10 07:15:05 +00:00
Chun-Min Chang 7b058566c8 Bug 1836826 - Apply local patches to libvpx r=webrtc-reviewers,dbaker
Apply local patches by running `./mach vendor media/libvpx/moz.yaml
--patch-mode-only`

Differential Revision: https://phabricator.services.mozilla.com/D180015
2023-10-10 07:15:05 +00:00
Chun-Min Chang 9776b04c6e Bug 1836826 - Update libvpx to 25a9a8e35aafe8391c5b79115bf944e27445317e r=webrtc-reviewers,pehrsons
Update to 25a9a8e35aafe8391c5b79115bf944e27445317e by running `./mach
vendor media/libvpx/moz.yaml --patch-mode=none`

This patch pull the files from upstream repo and rename some files then
apply rename_duplicate_files.patch and win64_build_fix.patch to make the
builds work (see more details in libvpx/moz.yaml).

Differential Revision: https://phabricator.services.mozilla.com/D180014
2023-10-10 07:15:03 +00:00
Noemi Erli 0250ee9204 Backed out 2 changesets (bug 1836826) for causing bustage in sad4d_neon_dotprod.c CLOSED TREE
Backed out changeset ead3e0b0682d (bug 1836826)
Backed out changeset 026ce2e0ea2d (bug 1836826)
2023-10-05 19:20:01 +03:00
Chun-Min Chang 89a9394c74 Bug 1836826 - Apply local patches to libvpx r=webrtc-reviewers,dbaker
Apply local patches by running `./mach vendor media/libvpx/moz.yaml
--patch-mode-only`

Differential Revision: https://phabricator.services.mozilla.com/D180015
2023-10-05 15:47:17 +00:00
Chun-Min Chang e90e3c9c27 Bug 1836826 - Update libvpx to 25a9a8e35aafe8391c5b79115bf944e27445317e r=webrtc-reviewers,pehrsons
Update to 25a9a8e35aafe8391c5b79115bf944e27445317e by running `./mach
vendor media/libvpx/moz.yaml --patch-mode=none`

This patch pull the files from upstream repo and rename some files then
apply rename_duplicate_files.patch and win64_build_fix.patch to make the
builds work (see more details in libvpx/moz.yaml).

Differential Revision: https://phabricator.services.mozilla.com/D180014
2023-10-05 15:47:17 +00:00
Ryan VanderMeulen 6489b46ed2 Bug 1855550 - VP8: disallow thread count changes. r=jesup
Cherry-pick of upstream libvpx commits:
af6dedd715
3fbd1dca6a

Differential Revision: https://phabricator.services.mozilla.com/D189428
2023-09-27 23:12:23 +00:00
Chun-Min Chang 72880921b4 Bug 1831930 - Apply local patches to libvpx r=webrtc-reviewers,ng
Apply local patches by running `./mach vendor media/libvpx/moz.yaml
--patch-mode-only`

Differential Revision: https://phabricator.services.mozilla.com/D177514
2023-05-12 01:08:58 +00:00
Chun-Min Chang 69a22f30f5 Bug 1831930 - Update libvpx to 19ec57e14938bcb12d87123b7c369212f19792eb r=webrtc-reviewers,ng
Update to 19ec57e14938bcb12d87123b7c369212f19792eb by running `./mach
vendor media/libvpx/moz.yaml --patch-mode=none`

Differential Revision: https://phabricator.services.mozilla.com/D177513
2023-05-12 01:08:58 +00:00
Chun-Min Chang b50359b886 Bug 1827664 - Remove custom changes for MSVC in libvpx r=padenot
Gecko doesn't support msvc anymore.

Differential Revision: https://phabricator.services.mozilla.com/D177518
2023-05-12 01:08:58 +00:00
Chun-Min Chang b54968aed8 Bug 1827249 - Apply local patches to libvpx r=media-playback-reviewers,padenot
Apply local patches by running `./mach vendor media/libvpx/moz.yaml
--patch-mode-only`

Depends on D175146

Differential Revision: https://phabricator.services.mozilla.com/D175147
2023-04-12 16:39:29 +00:00
Chun-Min Chang 0673d254cc Bug 1827249 - Update libvpx to 31b6d12 r=media-playback-reviewers,padenot
Update to 31b6d12892cebc57adccc62994f29ebbca828fa0 by running `./mach
vendor media/libvpx/moz.yaml --patch-mode=none`

Differential Revision: https://phabricator.services.mozilla.com/D175146
2023-04-12 16:39:29 +00:00
Chun-Min Chang 1118f48cad Bug 1822135 - Apply local patches to libvpx r=webrtc-reviewers,media-playback-reviewers,padenot
Run `./mach vendor media/libvpx/moz.yaml --patch-mode=only` as what
media/libvpx/README_MOZILLA said.

Depends on D173561

Differential Revision: https://phabricator.services.mozilla.com/D173562
2023-03-30 16:37:07 +00:00
Chun-Min Chang 11ff2e9240 Bug 1822135 - Update libvpx to 5b05f6f r=webrtc-reviewers,media-playback-reviewers,padenot
Run `./mach vendor media/libvpx/moz.yaml --patch-mode=none` as what
media/libvpx/README_MOZILLA said.

The updated libvpx revision is 5b05f6f3a01d7e25d0573b482245a2b8b0eb09bd.

Differential Revision: https://phabricator.services.mozilla.com/D173561
2023-03-30 16:37:07 +00:00
Chun-Min Chang c4dccfd321 Bug 1816486 - Apply local patches to libvpx r=webrtc-reviewers,ng
Run `./mach vendor media/libvpx/moz.yaml --patch-mode=only` as what
media/libvpx/README_MOZILLA said.

Depends on D169840

Differential Revision: https://phabricator.services.mozilla.com/D169841
2023-02-14 22:26:53 +00:00
Chun-Min Chang 1b617be5fa Bug 1816486 - Update libvpx to bc2965f r=webrtc-reviewers,ng
Run `./mach vendor media/libvpx/moz.yaml --patch-mode=none` as what
media/libvpx/README_MOZILLA said.

The updated libvpx revision is bc2965ff72af7d7b21ffeab10549fcc67ed66ccf.

Differential Revision: https://phabricator.services.mozilla.com/D169840
2023-02-14 22:26:52 +00:00