Missing VAAPI profiles/entry points
When using Mesa-git VAAPI becomes unusable for anything but jpeg and mpeg2. Mesa-git is required for many newer titles on steam which has to be forced through a global variable.
output of vainfo for mesa-git
flatpak run org.freedesktop.Platform.VaInfo
libva info: VA-API version 1.12.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver/radeonsi_drv_video.so
libva info: Trying to open /usr/lib/x86_64-linux-gnu/GL/lib/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_12
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.12 (libva 2.9.1)
vainfo: Driver version: Mesa Gallium driver 22.3.0-devel for AMD Radeon RX 480 Graphics (polaris10, LLVM 12.0.1, DRM 3.46, 5.18.15-200.fc36.x86_64)
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
when using default
FLATPAK_GL_DRIVERS=default flatpak run org.freedesktop.Platform.VaInfo
libva info: VA-API version 1.12.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver/radeonsi_drv_video.so
libva info: Trying to open /usr/lib/x86_64-linux-gnu/GL/lib/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_12
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.12 (libva 2.9.1)
vainfo: Driver version: Mesa Gallium driver 21.3.9 for AMD Radeon (TM) RX 480 Graphics (POLARIS10, DRM 3.46.0, 5.18.15-200.fc36.x86_64, LLVM 12.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
This also means that VAAPI is basically unusable on Polaris at the moment beyond 720p in OBS because it requires fixes from mesa 22 for the encoder and VAAPI isnt functional on mesa-git. This will most likely be fine when platform 22.08 comes out but for the moment VAAPI is otherwise broken in mesa-git.
missing commit in current GL.default for polaris https://gitlab.freedesktop.org/mesa/mesa/-/commit/9caf110d4f31cdb5e962b3d8c144251983e3a577
Edited by BigFG