Bug 267238 - graphics/mesa-gallium-va: No more support for h.264 and h.265 after update to 22.2.1
Summary: graphics/mesa-gallium-va: No more support for h.264 and h.265 after update to...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-x11 (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-21 06:57 UTC by shamaz.mazum
Modified: 2022-10-24 12:17 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (x11)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shamaz.mazum 2022-10-21 06:57:36 UTC
Hi! After mesa update to 22.2.1 from 21.3.8 I no longer have VAAPI support for some video codecs:

vainfo with mesa 22.2.1:
vasily@vonbraun:~ % vainfo
Trying display: wayland
libva info: VA-API version 1.16.0
libva info: Trying to open /usr/local/lib/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_16
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.16 (libva 2.16.0)
vainfo: Driver version: Mesa Gallium driver 22.2.1 for AMD Radeon RX 580 Series (polaris10, LLVM 13.0.1, DRM 3.40, 13.1-RELEASE-p1)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc


vainfo with mesa 21.3.8:
vasily@vonbraun:~ % vainfo
Trying display: wayland
libva info: VA-API version 1.16.0
libva info: Trying to open /usr/local/lib/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_16
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.16 (libva 2.16.0)
vainfo: Driver version: Mesa Gallium driver 21.3.8 for AMD Radeon RX 580 Series (POLARIS10, DRM 3.40.0, 13.1-RELEASE-p1, LLVM 13.0.1)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileHEVCMain               :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointEncSlice
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileNone                   :	VAEntrypointVideoProc

Is it a regression?
Comment 1 Emmanuel Vadot freebsd_committer freebsd_triage 2022-10-22 12:25:23 UTC
Can confirm, sorry for not tested this before upgrading.
Couldn't find anything in upstream issues so I'll likely try to bisect and see when this changed.
Comment 2 Emmanuel Vadot freebsd_committer freebsd_triage 2022-10-24 10:30:42 UTC
(In reply to Emmanuel Vadot from comment #1)

Yeah that's because I'm dumb, we need to enable the codecs now.
Will fix it later today.
Comment 3 commit-hook freebsd_committer freebsd_triage 2022-10-24 11:50:54 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=292d80d5677674d9f03318a5f1caf09b27ecd169

commit 292d80d5677674d9f03318a5f1caf09b27ecd169
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2022-10-24 10:27:08 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-10-24 11:50:02 +0000

    graphics/mesa*: Update to 22.2.2

    While here enable vc1, h264 and h265 for mesa-gallium-va

    Release notes:  https://lists.freedesktop.org/archives/mesa-announce/2022-October/000689.html

    Sponsored by:   Beckhoff Automation GmbH & Co. KG
    PR:     267238

 graphics/mesa-dri/Makefile.common | 2 +-
 graphics/mesa-dri/distinfo        | 6 +++---
 graphics/mesa-gallium-va/Makefile | 1 +
 3 files changed, 5 insertions(+), 4 deletions(-)
Comment 4 Emmanuel Vadot freebsd_committer freebsd_triage 2022-10-24 11:52:26 UTC
Everything should be good now, please confirm.
Comment 5 shamaz.mazum 2022-10-24 12:09:20 UTC
(In reply to Emmanuel Vadot from comment #4)

Fixed. Thanks!
Comment 6 Emmanuel Vadot freebsd_committer freebsd_triage 2022-10-24 12:17:07 UTC
Thanks for confirming.