Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 918093 - media-libs/mesa-9999 needs additional options for AV1 and VP9
Summary: media-libs/mesa-9999 needs additional options for AV1 and VP9
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-23 18:02 UTC by David Korth
Modified: 2023-12-21 19:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Korth 2023-11-23 18:02:58 UTC
Some recent commits in mesa have made AV1 hardware encode/decode and VP9 hardware decode optional:

https://gitlab.freedesktop.org/mesa/mesa/-/commit/7b22dd8bfdc380be2e4037c1207fcb30a46ad296
https://gitlab.freedesktop.org/mesa/mesa/-/commit/527def0171b0eeaa66ddfe7d0b82ee8b29cd2837
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26223

In the ebuild, several proprietary drivers, including H.264 and H.265, are controlled by the proprietary-codecs USE flag:

-Dvideo-codecs=$(usex proprietary-codecs "4h264dec,h264enc,h265dec,h265enc,vc1dec" "")

With these commits, the line needs to be changed to:

-Dvideo-codecs=$(usex proprietary-codecs "4h264dec,h264enc,h265dec,h265enc,vc1dec,av1dec,av1enc,vp9dec" "")

emerge --info:

Portage 3.0.55 (python 3.12.0-final-0, default/linux/amd64/17.1/hardened, gcc-13, glibc-2.38-r6, 6.6.2-DEK-T14G3A x86_64)
=================================================================
System uname: Linux-6.6.2-DEK-T14G3A-x86_64-AMD_Ryzen_7_PRO_6850U_with_Radeon_Graphics-with-glibc2.38
KiB Mem:    31596628 total,   2803536 free
KiB Swap:   25165816 total,  22218316 free
Timestamp of repository gentoo: Thu, 23 Nov 2023 16:30:01 +0000
Head commit of repository gentoo: 4761b1f9e35d22f6bcf44356c44921cf786b273e
Timestamp of repository kde: Thu, 23 Nov 2023 15:17:32 +0000
Head commit of repository kde: 1372b532b8823ade6d1b67a99017f7d8b533c275

Timestamp of repository qt: Thu, 23 Nov 2023 15:17:24 +0000
Head commit of repository qt: e923aa798832e66c1eefd6151cfb833ac96bcdec

Timestamp of repository steam-overlay: Thu, 23 Nov 2023 15:17:24 +0000
Head commit of repository steam-overlay: afe9a13b07a6344c6be876a8ab507e3dd88a9b4c

Timestamp of repository x11: Sun, 19 Nov 2023 16:17:27 +0000
Head commit of repository x11: 570e7566d68539489d7862df5a3eeca7298fbbc7

sh dash 0.5.12
ld GNU ld (Gentoo 2.41 p1) 2.41
ccache version 4.8.3 [enabled]
app-misc/pax-utils:        1.3.5::DEK-X230-local-portage-repository
app-shells/bash:           5.1_p16-r6::gentoo
dev-java/java-config:      2.3.1-r1::DEK-X230-local-portage-repository
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.11.5::gentoo, 3.12.0_p1::gentoo
dev-lang/rust:             1.73.0::gentoo
dev-util/ccache:           4.8.3::gentoo
dev-util/cmake:            3.26.5-r1::gentoo
dev-util/meson:            1.2.3::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/openrc:           0.48::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.41::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.1::gentoo
sys-devel/gcc:             13.2.0::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             17.0.1::gentoo
sys-devel/llvm:            17.0.1::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 3
    sync-rsync-extra-opts: --progress

kde
    location: /var/db/repos/kde
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/kde.git
    masters: gentoo
    volatile: False

qt
    location: /var/db/repos/qt
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/qt.git
    masters: gentoo
    volatile: False

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo
    volatile: False

x11
    location: /var/db/repos/x11
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/x11.git
    masters: gentoo
    volatile: False

DEK-X230-local-portage-repository
    location: /usr/local/portage
    masters: gentoo
    priority: 99
    volatile: True

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
AR="gcc-ar"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-flto=4 -fno-fat-lto-objects -O2 -pipe -march=native -mfpmath=sse -gz=zstd -fgraphite-identity -floop-nest-optimize -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.9/conf /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-flto=4 -fno-fat-lto-objects -O2 -pipe -march=native -mfpmath=sse -gz=zstd -fgraphite-identity -floop-nest-optimize -ftree-vectorize"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live ccache compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="/usr/share/locale -/usr/share/locale/de* -/usr/share/locale/en* -/usr/share/locale/es* -/usr/share/locale/fr* -/usr/share/locale/he* -/usr/share/locale/ja* -/usr/share/locale/pt* -/usr/share/locale/ru* -/usr/share/locale/kf5_all_languages -/usr/share/locale/locale.alias /usr/share/man -/usr/share/man/man* -/usr/share/man/cat* -/usr/share/man/de* -/usr/share/man/en* -/usr/share/man/es* -/usr/share/man/fr* -/usr/share/man/he* -/usr/share/man/ja* -/usr/share/man/pt* -/usr/share/man/ru*"
LANG="en_US.utf8"
LDFLAGS="-flto=4 -fno-fat-lto-objects -fuse-linker-plugin -Wl,-O1 -Wl,--as-needed -Wl,-O2 -Wl,--sort-common -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,pack-relative-relocs -O2 -pipe -march=native -mfpmath=sse -gz=zstd -fgraphite-identity -floop-nest-optimize -ftree-vectorize"
LEX="flex"
MAKEOPTS="-j9"
NM="gcc-nm"
PKGDIR="/var/cache/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--progress"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
RANLIB="gcc-ranlib"
SHELL="/bin/bash"
USE="X a52 aac aacs acl acpi activities aio alsa amd64 apng appindicator aptx argon2 avif bash-completion bcachefs bdplus blake2 bluetooth bluray branding brotli btrfs bzip2 cairo calendar caps cdda cdr cdrom cet cli color-management colord connection-sharing crypt cryptsetup cups cxx d3d9 dav1d dbus declarative device-mapper dri dri2 dri3 drm dts dvb dvd dvdr echo-cancel egl elogind emoji encode evdev exif f2fs fat fax fbcon fdk ffmpeg filecaps firmware flac fortran freetype gbm gdb-plugin gdbm gdk-pixbuf gif git gles2 gmp gold google googledrive gpg gpm gstreamer gui hardened harfbuzz hdri heif http2 ibus iconv icu imagemagick introspection io-uring ipv6 iwd jbig jit jpeg jpegxl jumbo-build kde kipi kwallet lcms ldac libass libdrm libevent libinput libkms libnotify libplacebo libtirpc libv4l lm-sensors lm_sensors lto lvm lz4 lzma lzo mad magic mbim minizip mktemp mng modemmanager modules-sign mp3 mp4 mpeg mtp multilib ncurses networkmanager nftables nls nptl ntfs nvme ocr offload ofx ogg opencl opengl openmp opus orc osmesa pam pango pcre pcre16 pdf pgo phonon pie pim pipewire pkcs7 plasma png policykit postproc ppds pulseaudio qml qrcode qt5 qt6 quotes rar rav1e readline resolvconf rustfmt s3tc samba scanner schroedinger screencast sdl seccomp semantic-desktop sixel smartcard smp sound source-highlight spell spirv ssh ssl ssp stack-realign startup-notification steamfonts svc svg svt-av1 system-icu taglib test-rust theora threads thumbnail thumbnails thunderbolt tiff touchpad trayicon truetype udev udisks unicode upower usb usbredir v4l vaapi vdpau verify-sig vnc vorbis vpx vtv vulkan vulkan-overlay wayland webengine webp widgets wifi wmf wxwidgets x264 x265 xa xattr xcb xcomposite xft xinerama xml xpm xscreensaver xtpax xv xvid xxhash xz zeroconf zink zip zlib zstd zvbi" ABI_X86="64" ADA_TARGET="gnat_2021" ALSA_CARDS="hda-intel" AMDGPU_TARGETS="gfx1030" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2 avx aes f16c popcnt fma3 avx2 pclmul sse4a sha" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc efi-64" INPUT_DEVICES="evdev libinput wacom" KERNEL="linux" L10N="de en en-GB en-US es es-419 fr he ja pt pt-BR pt-PT ru uk" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86 BPF WebAssembly AMDGPU SPIRV" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" QEMU_SOFTMMU_TARGETS="x86_64 i386" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 David Korth 2023-11-23 18:04:10 UTC
Somehow an extra '4' got in the ebuild lines, so I'm reposting a corrected version.

mesa-9999.ebuild as it is now:

-Dvideo-codecs=$(usex proprietary-codecs "h264dec,h264enc,h265dec,h265enc,vc1dec" "")

mesa-9999.ebuild with fix for AV1 and VP9:

-Dvideo-codecs=$(usex proprietary-codecs "h264dec,h264enc,h265dec,h265enc,vc1dec,av1dec,av1enc,vp9dec" "")
Comment 2 Matt Turner gentoo-dev 2023-11-24 21:23:07 UTC
There's some discussion of this in https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26320

Let's wait and see how that shakes out.
Comment 3 Mark Herbert 2023-12-01 17:38:07 UTC
This shitty commit have been merged  - so now mesa-9999 does not support any codecs besides H264. Is there any reason to wait longer?
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-01 18:32:58 UTC
(In reply to Mark Herbert from comment #3)
> This shitty commit have been merged  - so now mesa-9999 does not support any
> codecs besides H264. Is there any reason to wait longer?

The MR is still open? Not sure what you mean.

(FWIW, you can always override meson options with MYMESONARGS in the environment)
Comment 5 Larry the Git Cow gentoo-dev 2023-12-21 19:14:10 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ea1cc03e2d264794633fe34e28bd5dc05fb612a

commit 1ea1cc03e2d264794633fe34e28bd5dc05fb612a
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2023-12-21 19:11:51 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2023-12-21 19:11:51 +0000

    media-libs/mesa: Enable free codecs
    
    Closes: https://bugs.gentoo.org/918093
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 media-libs/mesa/mesa-9999.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)