From 87cf0d4e6b384fe53299139d5e826420dcaac66c Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 14 May 2026 04:40:04 +0900 Subject: [PATCH] internal/rosa/mesa: libva artifact Required by mesa. Signed-off-by: Ophestra --- internal/rosa/all.go | 1 + internal/rosa/mesa.go | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/internal/rosa/all.go b/internal/rosa/all.go index 0776c615..379f15c8 100644 --- a/internal/rosa/all.go +++ b/internal/rosa/all.go @@ -112,6 +112,7 @@ const ( Libtool Libucontext Libunistring + Libva LibxcbRenderUtil LibxcbUtil LibxcbUtilImage diff --git a/internal/rosa/mesa.go b/internal/rosa/mesa.go index 21ace480..961cd736 100644 --- a/internal/rosa/mesa.go +++ b/internal/rosa/mesa.go @@ -82,3 +82,45 @@ func init() { ID: 1596, } } + +func (t Toolchain) newLibva() (pkg.Artifact, string) { + const ( + version = "2.23.0" + checksum = "UmF5tPyWIG_w5kiR3KFpoYbF7UUcaak5tyc-RhOheNTwQlLkPlifreFYCM9FQxbq" + ) + return t.NewPackage("libva", version, newFromGitHub( + "intel/libva", + version, + checksum, + ), nil, &MesonHelper{ + Setup: []KV{ + {"Dwith_x11", "yes"}, + {"Dwith_glx", "yes"}, + {"Dwith_wayland", "yes"}, + }, + }, + Libdrm, + LibXfixes, + Libglvnd, + Wayland, + KernelHeaders, + ), version +} +func init() { + artifactsM[Libva] = Metadata{ + f: Toolchain.newLibva, + + Name: "libva", + Description: "an implementation for VA-API (Video Acceleration API)", + Website: "https://01.org/vaapi", + + Dependencies: P{ + Libdrm, + LibXfixes, + Libglvnd, + Wayland, + }, + + ID: 1752, + } +}