Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No VAAPI hardware acceleration in some hardware #321

Open
tomas7770 opened this issue Feb 24, 2025 · 0 comments
Open

No VAAPI hardware acceleration in some hardware #321

tomas7770 opened this issue Feb 24, 2025 · 0 comments

Comments

@tomas7770
Copy link

Hardware video encoding/decoding isn't fully functional in some hardware.

It seems that Fedora's free Mesa packages are being used instead of negativo17.

Tested hardware

  • Model: ASUS Vivobook M7400QC
  • Processor: AMD Ryzen 7 5800H
  • Graphics: AMD Radeon Graphics + NVIDIA GeForce RTX 3050
  • Memory: 16.0 GiB

System version

My own custom image based on kinoite-nvidia.

Details

vainfo output:

libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib64/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
Trying display: wayland
vainfo: VA-API version: 1.22 (libva 2.22.0)
vainfo: Driver version: Mesa Gallium driver 24.3.4 for AMD Radeon Graphics (radeonsi, renoir, LLVM 19.1.7, DRM 3.60, 6.12.15-200.fc41.x86_64)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointVLD
      VAProfileNone                   :	VAEntrypointVideoProc

rpm -qilf /usr/lib64/dri/radeonsi_drv_video.so output:

Name        : mesa-va-drivers
Version     : 24.3.4
Release     : 3.fc41
Architecture: x86_64
Install Date: dom 23 fev 2025 04:09:31
Group       : Unspecified
Size        : 92
License     : MIT AND BSD-3-Clause AND SGI-B-2.0
Signature   : RSA/SHA256, qua 29 jan 2025 15:36:19, Key ID d0622462e99d6ad1
Source RPM  : mesa-24.3.4-3.fc41.src.rpm
Build Date  : qua 29 jan 2025 09:42:08
Build Host  : buildvm-x86-23.iad2.fedoraproject.org
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : http://www.mesa3d.org
Bug URL     : https://bugz.fedoraproject.org/mesa
Summary     : Mesa-based VA-API video acceleration drivers
Description :
Mesa-based VA-API video acceleration drivers.
/usr/lib64/dri/nouveau_drv_video.so
/usr/lib64/dri/r600_drv_video.so
/usr/lib64/dri/radeonsi_drv_video.so
/usr/lib64/dri/virtio_gpu_drv_video.so

Here in a build of kinoite-nvidia you can see the Mesa packages being downgraded. My guess is because it's trying to install mesa-vulkan-drivers.i686 after disabling the negativo17 multimedia repo, it resorts to the Fedora one, and has to downgrade the other packages as well to satisfy dependencies.

Workaround

As a workaround I added this to my image's build script:

rpm-ostree override replace \
      --experimental \
      --from repo='fedora-multimedia' \
      --remove=mesa-libglapi \
        mesa-dri-drivers \
        mesa-filesystem \
        mesa-libEGL \
        mesa-libGL \
        mesa-libgbm \
        mesa-va-drivers \
        mesa-vulkan-drivers \
        mesa-vulkan-drivers.i686

And now it works as intended.

libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib64/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
Trying display: wayland
vainfo: VA-API version: 1.22 (libva 2.22.0)
vainfo: Driver version: Mesa Gallium driver 25.0.0 for AMD Radeon Graphics (radeonsi, renoir, ACO, DRM 3.60, 6.12.15-200.fc41.x86_64)
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
      VAProfileHEVCMain10             :	VAEntrypointEncSlice
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointVLD
      VAProfileNone                   :	VAEntrypointVideoProc
Name        : mesa-va-drivers
Epoch       : 1
Version     : 25.0.0
Release     : 1.fc41
Architecture: x86_64
Install Date: seg 24 fev 2025 15:48:53
Group       : Unspecified
Size        : 92
License     : MIT AND BSD-3-Clause AND SGI-B-2.0
Signature   : RSA/SHA256, sáb 22 fev 2025 14:37:35, Key ID 97f3008993e8909b
Source RPM  : mesa-25.0.0-1.fc41.src.rpm
Build Date  : sáb 22 fev 2025 14:23:24
Build Host  : wks2.lab.negativo17.org
URL         : http://www.mesa3d.org
Summary     : Mesa-based VA-API video acceleration drivers
Description :
Mesa-based VA-API video acceleration drivers.
/usr/lib64/dri/nouveau_drv_video.so
/usr/lib64/dri/r600_drv_video.so
/usr/lib64/dri/radeonsi_drv_video.so
/usr/lib64/dri/virtio_gpu_drv_video.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant