From 9ddf16c06864f171379394c2751527152da47407 Mon Sep 17 00:00:00 2001
From: Koichiro Iwao
Date: Mon, 24 Jun 2024 09:10:03 +0900
Subject: [PATCH] Enable v3d, vc4 for Raspberry Pi graphics
Resolves: https://github.com/AlmaLinux/raspberry-pi/issues/32
---
SPECS/mesa.spec | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/SPECS/mesa.spec b/SPECS/mesa.spec
index 0ce4d6d..f166940 100644
--- a/SPECS/mesa.spec
+++ b/SPECS/mesa.spec
@@ -20,6 +20,11 @@
%endif
%ifarch %{arm} aarch64
+# RHEL doesn't ship vc4 and v3d but we do for RPi
+%if 0%{?almalinux}
+%global with_vc4 1
+%global with_v3d 1
+%endif
%if !0%{?rhel}
%global with_etnaviv 1
%global with_lima 1
@@ -54,7 +59,7 @@ Name: mesa
Summary: Mesa graphics libraries
%global ver 23.3.3
Version: %{lua:ver = string.gsub(rpm.expand("%{ver}"), "-", "~"); print(ver)}
-Release: 1%{?dist}
+Release: 1%{?dist}.alma.1
License: MIT
URL: http://www.mesa3d.org
@@ -616,6 +621,10 @@ popd
%endif
%changelog
+* Mon Jun 24 2024 Koichiro Iwao - 23.3.3-1.alma.1
+- Enable vc4 and v3d for Raspberry Pi graphics in AlmaLinux
+ Resolves: https://github.com/AlmaLinux/raspberry-pi/issues/32
+
* Wed Jan 17 2024 José Expósito - 23.3.3-1
- Update to mesa 23.3.3
--
2.43.5