From 69408137980131ca1fd90508e9946dcee2c923de 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 | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/SPECS/mesa.spec b/SPECS/mesa.spec
index 0ce4d6d..62aa9e6 100644
--- a/SPECS/mesa.spec
+++ b/SPECS/mesa.spec
@@ -20,11 +20,13 @@
%endif
%ifarch %{arm} aarch64
+%if 0%{?almalinux}
+%global with_vc4 1
+%global with_v3d 1
+%endif
%if !0%{?rhel}
%global with_etnaviv 1
%global with_lima 1
-%global with_vc4 1
-%global with_v3d 1
%endif
%global with_freedreno 1
%global with_kmsro 1
@@ -54,7 +56,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 +618,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