[packages/Mesa] in libva-driver-gallium require VA-API version provided during build; rel 2
atler
atler at pld-linux.org
Thu Nov 21 14:12:10 CET 2024
commit c9c9890a356ff381dc5233501441254966faa3df
Author: Jan Palus <atler at pld-linux.org>
Date: Thu Nov 21 13:17:12 2024 +0100
in libva-driver-gallium require VA-API version provided during build; rel 2
Mesa provides __vaDriverInit_X_Y symbol (used for loading driver) in
which X matches major VA-API version and Y matches minor VA-API version
provided by currently installed libva:
https://gitlab.freedesktop.org/mesa/mesa/-/blob/3900828265aab07f31942fd0a8afe5b07e75c94b/src/gallium/frontends/va/meson.build#L16-17
meaning ie driver built with libva providing VA-API 1.22.0 cannot be
loaded with libva providing VA-API 1.21.0. higher versions are backward
compatible though.
Mesa.spec | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/Mesa.spec b/Mesa.spec
index b947cc7..e09f3b6 100644
--- a/Mesa.spec
+++ b/Mesa.spec
@@ -34,6 +34,10 @@
%define proc_macro2_crate_ver 1.0.86
%define paste_crate_ver 1.0.14
+%define va_api_version %(pkg-config --modversion libva 2> /dev/null || echo ERROR)
+%define va_api_major %(echo %{va_api_version} | cut -d . -f 1)
+%define va_api_minor %(echo %{va_api_version} | cut -d . -f 2)
+
#
# glapi version (glapi tables in dri drivers and libglx must be in sync);
# set to current Mesa version on ABI break, when xserver tables get regenerated
@@ -91,7 +95,7 @@ Summary: Free OpenGL implementation
Summary(pl.UTF-8): Wolnodostępna implementacja standardu OpenGL
Name: Mesa
Version: 24.2.7
-Release: 1
+Release: 2
License: MIT (core) and others - see license.html file
Group: X11/Libraries
Source0: https://archive.mesa3d.org/mesa-%{version}.tar.xz
@@ -937,6 +941,7 @@ Summary: VA driver for Gallium State Tracker
Summary(pl.UTF-8): Sterowniki VA do Gallium
Group: Libraries
Requires: %{name}-libgallium%{?_isa} = %{version}-%{release}
+Requires: libva(va-api)%{?_isa} >= %{va_api_major}.%{va_api_minor}
%if %{with va}
%if %{with gallium_nouveau}
Provides: libva-driver-nouveau = %{version}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/Mesa.git/commitdiff/c9c9890a356ff381dc5233501441254966faa3df
More information about the pld-cvs-commit
mailing list