Closed Bug 1888772 Opened 2 years ago Closed 2 years ago

enable cpu runtime detection in bundled libvpx for OpenBSD/arm64

Categories

(Core :: Audio/Video, defect, P1)

ARM64
OpenBSD
defect

Tracking

()

RESOLVED FIXED
126 Branch
Tracking Status
firefox126 --- fixed

People

(Reporter: gaston, Assigned: chunmin)

References

Details

Attachments

(3 files)

on OpenBSD/arm64, libvpx fails to build because there's nothing for cpu runtime detection, and we hit the default codepath in https://searchfox.org/mozilla-central/source/media/libvpx/libvpx/vpx_ports/aarch64_cpudetect.c#182

we have a patch for the systemwide libvpx since a while in 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 and it was ported to firefox in https://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/www/mozilla-firefox/patches/patch-media_libvpx_libvpx_vpx_ports_aarch64_cpudetect_c?rev=1.2&content-type=text/x-cvsweb-markup

since upstream libvpx is chromium and generally doesnt welcome non-tier1-supporting patches, could this patch (or a variation of it) be added to the patches that updatebot applies ?

Flags: needinfo?(jld)
Flags: needinfo?(cchang)

This patch runs 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
process).

Depends on D206409

Sure, I've imported the patch to our code base and I am going to test it on our CI: https://treeherder.mozilla.org/jobs?repo=try&revision=0ef36e4bf3479017890d7b51dedd5db71a415355

Flags: needinfo?(cchang)
Assignee: nobody → cchang
Flags: needinfo?(jld)
OS: Unspecified → OpenBSD
Hardware: Unspecified → ARM64
Severity: -- → S4
Priority: -- → P1
Attachment #9394631 - Attachment description: WIP: Bug 1888772 - Import ARM-CPU-runtime-detection-on-OpenBSD patch → Bug 1888772 - Import ARM-CPU-runtime-detection-on-OpenBSD patch
Attachment #9394632 - Attachment description: WIP: Bug 1888772 - Add arm-cpu-runtime-detection patch to moz.yaml → Bug 1888772 - Add arm-cpu-runtime-detection patch to moz.yaml
Attachment #9394633 - Attachment description: WIP: Bug 1888772 - Apply to ARM-CPU-runtime-detection patch → Bug 1888772 - Apply to ARM-CPU-runtime-detection patch
Attachment #9394633 - Attachment description: Bug 1888772 - Apply to ARM-CPU-runtime-detection patch → Bug 1888772 - Apply ARM-CPU-runtime-detection patch
Blocks: 1886378
Pushed by cchang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/112d7c3a8432 Import ARM-CPU-runtime-detection-on-OpenBSD patch r=media-playback-reviewers,padenot https://hg.mozilla.org/integration/autoland/rev/26ac68728a9c Add arm-cpu-runtime-detection patch to moz.yaml r=media-playback-reviewers,padenot https://hg.mozilla.org/integration/autoland/rev/6d481aee635e Apply ARM-CPU-runtime-detection patch r=media-playback-reviewers,padenot

thanks :chunmin!

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: