Fix libva requirements for rocdecode (#435)

* Fix libva requirements for rocdecode

mesa-amdgpu-va-drivers is built with libva 2.16 (VA-API 1.16), so it
provides the entry point "__vaDriverInit_1_16". For rocdecode to use
mesa, it also needs to make sure it has a high enough requirement on
libva to be compatible with this function.

Strictly speaking, it doesn't matter what libva is used as long as it's
2.16 or newer, since libva is backwards compatible. An OR conditions is
used to favour distro packages when possible to avoid causing issues
with existing libraries built against the distro version.

For libva dev packages, we can just use libva-amdgpu-dev/el directly.

Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>

* Update to use libva-amdgpu

To reflect the package change, update the README, rocDecode-setup.py,
and the CHANEGLOG.

Putting the minimum VA-API version in the README isn't required as the
user is expected to just install the latest libva-amdgpu to match the
mesa VA-API version.

---------

Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>

[ROCm/rocdecode commit: 859103755a]
This commit is contained in:
Jeremy Newton
2024-10-22 11:41:00 -04:00
committed by GitHub
parent 6837a86bf5
commit 4867830142
4 changed files with 29 additions and 21 deletions
+7 -4
View File
@@ -29,17 +29,20 @@ access the video decoding features available on your GPU.
> [!IMPORTANT]
> `sudo amdgpu-install --usecase=rocm`
* [Video Acceleration API](https://en.wikipedia.org/wiki/Video_Acceleration_API) Version `1.5.0` or later - `Libva` is an implementation for VA-API
* [Video Acceleration API](https://en.wikipedia.org/wiki/Video_Acceleration_API) - `Libva` is an implementation for VA-API
```shell
sudo apt install libva-dev
sudo apt install libva-amdgpu-dev
```
> [!NOTE]
> RPM Packages for `RHEL`/`SLES` - `libva-devel`
> RPM Packages for `RHEL`/`SLES` - `libva-amdgpu-devel`
> libva-amdgpu is strongly recommended over system libva as it is used for building mesa-amdgpu-va-driver
* AMD VA Drivers
```shell
sudo apt install mesa-amdgpu-va-drivers
sudo apt install libva2-amdgpu libva-amdgpu-drm2 libva-amdgpu-wayland2 libva-amdgpu-x11-2 mesa-amdgpu-va-drivers
```
> [!NOTE]
> RPM Packages for `RHEL`/`SLES` - `libva-amdgpu mesa-amdgpu-va-drivers`
* CMake Version `3.5` or later