Skip to content

Commit d05a2cf

Browse files
rabonekoKyleGospo
andauthored
fix: Update mesa.spec with latest changes from upstream (#5601) (#5602)
* fix: Update mesa.spec with latest changes from upstream * chore: Remove unneeded patch * chore: Remove unused patch file * chore: Update bazzite.patch --------- (cherry picked from commit cfb7dae) Signed-off-by: Kyle Gospodnetich <[email protected]> Co-authored-by: Kyle Gospodnetich <[email protected]>
1 parent 4c564e3 commit d05a2cf

File tree

3 files changed

+52
-69
lines changed

3 files changed

+52
-69
lines changed

anda/lib/mesa/0001-Revert-kopper-Explicitly-choose-zink.patch

Lines changed: 0 additions & 32 deletions
This file was deleted.

anda/lib/mesa/bazzite.patch

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 15d9496c44df8c20128127e8ccb8856d5b7c8c29 Mon Sep 17 00:00:00 2001
1+
From 27e5ca5e9f32a3dab5d9f22e53c34133a98fc1ef Mon Sep 17 00:00:00 2001
22
From: Antheas Kapenekakis <[email protected]>
33
Date: Sat, 15 Mar 2025 16:38:53 +0100
44
Subject: [PATCH 01/11] [NA] Developer files, readme, etc
@@ -238,7 +238,7 @@ index 00000000000..f0fa113f876
238238
2.49.0
239239

240240

241-
From 0d1d997dfc1c7ae6321544cb54cd0fae443d13bd Mon Sep 17 00:00:00 2001
241+
From 2f02ad01e44eddb1d78e6e2a336bb21b7c3c93af Mon Sep 17 00:00:00 2001
242242
From: Antheas Kapenekakis <[email protected]>
243243
Date: Sat, 15 Mar 2025 16:39:08 +0100
244244
Subject: [PATCH 02/11] [BEGIN] SteamOS Changes
@@ -247,7 +247,7 @@ Subject: [PATCH 02/11] [BEGIN] SteamOS Changes
247247
2.49.0
248248

249249

250-
From 4cace3e7b524fe399a0f970cddff8298ed5d8848 Mon Sep 17 00:00:00 2001
250+
From d446cc1258a6c6fd042e9a3d651a799a033a2d8c Mon Sep 17 00:00:00 2001
251251
From: Bas Nieuwenhuizen <[email protected]>
252252
Date: Fri, 14 Jan 2022 15:58:45 +0100
253253
Subject: [PATCH 03/11] STEAMOS: radv: min image count override for FH5
@@ -259,10 +259,10 @@ gamescope the game could get stuck in low power states.
259259
1 file changed, 4 insertions(+)
260260

261261
diff --git a/src/util/00-radv-defaults.conf b/src/util/00-radv-defaults.conf
262-
index f4933bef04e..595a435802f 100644
262+
index e0e5b34dc87..5e931f61760 100644
263263
--- a/src/util/00-radv-defaults.conf
264264
+++ b/src/util/00-radv-defaults.conf
265-
@@ -230,5 +230,9 @@ Application bugs worked around in this file:
265+
@@ -238,5 +238,9 @@ Application bugs worked around in this file:
266266
<application name="Total War: WARHAMMER III" application_name_match="TotalWarhammer3">
267267
<option name="radv_disable_depth_storage" value="true"/>
268268
</application>
@@ -276,7 +276,7 @@ index f4933bef04e..595a435802f 100644
276276
2.49.0
277277

278278

279-
From ecc936c2cc8bd40dae8e0a72a0be20ac2013b135 Mon Sep 17 00:00:00 2001
279+
From 016b60d32de3cd99e10207e7f0fa2c6fce91476c Mon Sep 17 00:00:00 2001
280280
From: Samuel Pitoiset <[email protected]>
281281
Date: Thu, 22 Feb 2024 22:32:45 +0100
282282
Subject: [PATCH 04/11] STEAMOS: Dynamic swapchain override for gamescope
@@ -383,7 +383,7 @@ index 4da19d73090..819a0e548fc 100644
383383
2.49.0
384384

385385

386-
From 748118300fed8a077fe78b121e2440f9a5e94b86 Mon Sep 17 00:00:00 2001
386+
From 23db9ff0bf721f2c9080955c8c5dcf1f187d7adc Mon Sep 17 00:00:00 2001
387387
From: Antheas Kapenekakis <[email protected]>
388388
Date: Sat, 15 Mar 2025 16:39:25 +0100
389389
Subject: [PATCH 05/11] [BEGIN] SteamOS Backports
@@ -392,7 +392,7 @@ Subject: [PATCH 05/11] [BEGIN] SteamOS Backports
392392
2.49.0
393393

394394

395-
From ac2264f9364e2660618f9c6c65ffeb6cc582d8c9 Mon Sep 17 00:00:00 2001
395+
From 69160c86a0d01b1c8482277faca1f6f7fa24cfce Mon Sep 17 00:00:00 2001
396396
From: Antheas Kapenekakis <[email protected]>
397397
Date: Sat, 15 Mar 2025 16:39:33 +0100
398398
Subject: [PATCH 06/11] [BEGIN] Our Mesa backports
@@ -401,7 +401,7 @@ Subject: [PATCH 06/11] [BEGIN] Our Mesa backports
401401
2.49.0
402402

403403

404-
From daaf7be9a252e1a2fd217114e395dfe65e473784 Mon Sep 17 00:00:00 2001
404+
From 59e3d359a4f4f78112ee965bb790dec2208ea480 Mon Sep 17 00:00:00 2001
405405
From: Maarten Lankhorst <[email protected]>
406406
Date: Mon, 17 Feb 2025 14:55:29 -0800
407407
Subject: [PATCH 07/11] anv: Mark images with format modifiers set as scanout.
@@ -439,7 +439,7 @@ index 0fb86e9d846..de37994d324 100644
439439
2.49.0
440440

441441

442-
From 395b58b678a438bf04c96297f243eaebfb2b02ab Mon Sep 17 00:00:00 2001
442+
From 8c17b9dd7ad7f565080bd3623cfb820efb729444 Mon Sep 17 00:00:00 2001
443443
From: Antheas Kapenekakis <[email protected]>
444444
Date: Mon, 24 Mar 2025 19:50:51 +0100
445445
Subject: [PATCH 08/11] Revert "winsys/amdgpu: use VM_ALWAYS_VALID for all VRAM
@@ -472,7 +472,7 @@ index dfefc468bca..cc0719a1898 100644
472472
2.49.0
473473

474474

475-
From d4e93fa407acb088fb1b16f7cf79e24e9886cebd Mon Sep 17 00:00:00 2001
475+
From 816dec380bba16f65d7c65ddf9960a0ff79a8923 Mon Sep 17 00:00:00 2001
476476
From: Kyle Gospodnetich <[email protected]>
477477
Date: Sun, 18 May 2025 09:40:01 -0700
478478
Subject: [PATCH 09/11] [BEGIN] Proton-GE Patches
@@ -481,7 +481,7 @@ Subject: [PATCH 09/11] [BEGIN] Proton-GE Patches
481481
2.49.0
482482

483483

484-
From d2797aae04d682bf180c919f35447e58f41c9157 Mon Sep 17 00:00:00 2001
484+
From e768b0cf066c73e9c379d59d380462c15f050a03 Mon Sep 17 00:00:00 2001
485485
From: Kyle Gospodnetich <[email protected]>
486486
Date: Sun, 18 May 2025 09:42:23 -0700
487487
Subject: [PATCH 10/11] radv: min image count patch for Wine Wayland/Path of
@@ -506,7 +506,7 @@ Subject: [PATCH 10/11] radv: min image count patch for Wine Wayland/Path of
506506
15 files changed, 42 insertions(+), 22 deletions(-)
507507

508508
diff --git a/src/amd/vulkan/radv_instance.c b/src/amd/vulkan/radv_instance.c
509-
index 15a3f710502..a6af9d67db0 100644
509+
index d03b311fa07..910d3989451 100644
510510
--- a/src/amd/vulkan/radv_instance.c
511511
+++ b/src/amd/vulkan/radv_instance.c
512512
@@ -148,7 +148,7 @@ static const struct debug_control trace_options[] = {
@@ -597,10 +597,10 @@ index f6cbe8de4b7..7d3e3c71acf 100644
597597
DRI_CONF_VK_X11_ENSURE_MIN_IMAGE_COUNT(false)
598598
DRI_CONF_VK_KHR_PRESENT_WAIT(false)
599599
diff --git a/src/util/00-mesa-defaults.conf b/src/util/00-mesa-defaults.conf
600-
index 3475dda8083..c06297e9c07 100644
600+
index 5f6034061c2..ca7511877ee 100644
601601
--- a/src/util/00-mesa-defaults.conf
602602
+++ b/src/util/00-mesa-defaults.conf
603-
@@ -620,24 +620,24 @@ TODO: document the other workarounds.
603+
@@ -625,24 +625,24 @@ TODO: document the other workarounds.
604604

605605
<application name="gfxbench" executable="testfw_app">
606606
<option name="mesa_glthread_app_profile" value="0" />
@@ -629,7 +629,7 @@ index 3475dda8083..c06297e9c07 100644
629629
<option name="vk_x11_strict_image_count" value="true" />
630630
</application>
631631

632-
@@ -698,10 +698,12 @@ TODO: document the other workarounds.
632+
@@ -703,10 +703,12 @@ TODO: document the other workarounds.
633633

634634
<application name="Path of Exile" executable="PathOfExile_x64Steam.exe">
635635
<option name="vk_zero_vram" value="true" />
@@ -643,7 +643,7 @@ index 3475dda8083..c06297e9c07 100644
643643

644644
<application name="X4 Foundations" executable="X4">
645645
diff --git a/src/util/driconf.h b/src/util/driconf.h
646-
index 52605a44280..fc116c8d2bc 100644
646+
index 86e00d6edd6..a00c4c0e9a5 100644
647647
--- a/src/util/driconf.h
648648
+++ b/src/util/driconf.h
649649
@@ -448,8 +448,8 @@
@@ -672,7 +672,7 @@ index a843b463e84..4de75ceb8af 100644
672672
DRI_CONF_VK_XWAYLAND_WAIT_READY(true)
673673
DRI_CONF_VENUS_IMPLICIT_FENCING(false)
674674
diff --git a/src/vulkan/wsi/wsi_common.c b/src/vulkan/wsi/wsi_common.c
675-
index 05a247181cf..b0fb88bf2d6 100644
675+
index 528605856d5..d0ffd475b8f 100644
676676
--- a/src/vulkan/wsi/wsi_common.c
677677
+++ b/src/vulkan/wsi/wsi_common.c
678678
@@ -219,7 +219,7 @@ wsi_device_init(struct wsi_device *wsi,
@@ -802,7 +802,7 @@ index 65b7fdf7212..ea5d3750f46 100644
802802
2.49.0
803803

804804

805-
From a5460180b4a9020aaad7078da88c306acb8ec970 Mon Sep 17 00:00:00 2001
805+
From a1be005decba7afccc3f9ef36d7b8913d3e53952 Mon Sep 17 00:00:00 2001
806806
From: Kyle Gospodnetich <[email protected]>
807807
Date: Sun, 18 May 2025 09:59:41 -0700
808808
Subject: [PATCH 11/11] vulkan/wsi/wayland: Move drm syncobj to swapchain

anda/lib/mesa/mesa.spec

Lines changed: 33 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@
2929

3030
%ifarch %{ix86} x86_64
3131
%global with_crocus 1
32-
%global with_i915 1
3332
%global with_iris 1
3433
%global with_xa 1
3534
%global with_intel_clc 1
3635
%global intel_platform_vulkan %{?with_vulkan_hw:,intel,intel_hasvk}%{!?with_vulkan_hw:%{nil}}
36+
%if !0%{?rhel}
37+
%global with_i915 1
38+
%endif
3739
%endif
3840
%ifarch x86_64
3941
%if !0%{?with_vulkan_hw}
@@ -42,17 +44,18 @@
4244
%endif
4345

4446
%ifarch aarch64 x86_64 %{ix86}
45-
%global with_kmsro 1
4647
%if !0%{?rhel}
47-
%global with_lima 1
48-
%global with_vc4 1
48+
%global with_asahi 1
49+
%global with_d3d12 1
4950
%global with_etnaviv 1
51+
%global with_lima 1
5052
%global with_tegra 1
51-
%global with_asahi 1
53+
%global with_vc4 1
54+
%global with_v3d 1
5255
%endif
5356
%global with_freedreno 1
57+
%global with_kmsro 1
5458
%global with_panfrost 1
55-
%global with_v3d 1
5659
%global with_xa 1
5760
%if 0%{?with_asahi}
5861
%global asahi_platform_vulkan %{?with_vulkan_hw:,asahi}%{!?with_vulkan_hw:%{nil}}
@@ -63,6 +66,7 @@
6366
%if !0%{?rhel}
6467
%global with_libunwind 1
6568
%global with_lmsensors 1
69+
%global with_virtio 1
6670
%endif
6771

6872
%ifarch %{valgrind_arches}
@@ -71,7 +75,7 @@
7175
%bcond_with valgrind
7276
%endif
7377

74-
%global vulkan_drivers swrast,virtio%{?base_vulkan}%{?intel_platform_vulkan}%{?asahi_platform_vulkan}%{?extra_platform_vulkan}%{?with_nvk:,nouveau}
78+
%global vulkan_drivers swrast%{?base_vulkan}%{?intel_platform_vulkan}%{?asahi_platform_vulkan}%{?extra_platform_vulkan}%{?with_nvk:,nouveau}%{?with_virtio:,virtio}
7579

7680
Name: %{srcname}
7781
Summary: Mesa graphics libraries
@@ -80,7 +84,7 @@ Summary: Mesa graphics libraries
8084
# disabled by default, and has to be enabled manually. See `terra/release/terra-mesa.repo` for details.
8185
Epoch: 1
8286
Version: 25.1.4
83-
Release: 1%?dist
87+
Release: 2%?dist
8488
License: MIT AND BSD-3-Clause AND SGI-B-2.0
8589
URL: http://www.mesa3d.org
8690

@@ -95,12 +99,6 @@ Patch10: gnome-shell-glthread-disable.patch
9599
# https://github.com/bazzite-org/mesa
96100
Patch20: bazzite.patch
97101

98-
# This patch makes Fedora CI fail and causes issues in QEMU. Revert it until
99-
# we find a fix.
100-
# https://bugzilla.redhat.com/show_bug.cgi?id=2360851
101-
# https://gitlab.freedesktop.org/mesa/mesa/-/issues/13009
102-
Patch30: 0001-Revert-kopper-Explicitly-choose-zink.patch
103-
104102
BuildRequires: meson >= 1.3.0
105103
BuildRequires: gcc
106104
BuildRequires: gcc-c++
@@ -194,6 +192,9 @@ BuildRequires: glslang
194192
%if 0%{?with_vulkan_hw}
195193
BuildRequires: pkgconfig(vulkan)
196194
%endif
195+
%if 0%{?with_d3d12}
196+
BuildRequires: pkgconfig(DirectX-Headers) >= 1.614.1
197+
%endif
197198

198199
%description
199200
%{summary}.
@@ -254,6 +255,7 @@ Requires: %{name}-filesystem%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{rel
254255
Recommends: %{name}-va-drivers%{?_isa}
255256
%endif
256257
Obsoletes: %{name}-libglapi < %{?epoch:%{epoch}:}25.0.0~rc2-1
258+
Provides: %{name}-libglapi >= %{?epoch:%{epoch}:}25.0.0~rc2-1
257259

258260
%description dri-drivers
259261
%{summary}.
@@ -399,7 +401,7 @@ export MESON_PACKAGE_CACHE_DIR="%{cargo_registry}/"
399401
-Dplatforms=x11,wayland \
400402
-Dosmesa=true \
401403
%if 0%{?with_hardware}
402-
-Dgallium-drivers=llvmpipe,virgl,nouveau%{?with_r300:,r300}%{?with_crocus:,crocus}%{?with_i915:,i915}%{?with_iris:,iris}%{?with_vmware:,svga}%{?with_radeonsi:,radeonsi}%{?with_r600:,r600}%{?with_asahi:,asahi}%{?with_freedreno:,freedreno}%{?with_etnaviv:,etnaviv}%{?with_tegra:,tegra}%{?with_vc4:,vc4}%{?with_v3d:,v3d}%{?with_lima:,lima}%{?with_panfrost:,panfrost}%{?with_vulkan_hw:,zink} \
404+
-Dgallium-drivers=llvmpipe,virgl,nouveau%{?with_r300:,r300}%{?with_crocus:,crocus}%{?with_i915:,i915}%{?with_iris:,iris}%{?with_vmware:,svga}%{?with_radeonsi:,radeonsi}%{?with_r600:,r600}%{?with_asahi:,asahi}%{?with_freedreno:,freedreno}%{?with_etnaviv:,etnaviv}%{?with_tegra:,tegra}%{?with_vc4:,vc4}%{?with_v3d:,v3d}%{?with_lima:,lima}%{?with_panfrost:,panfrost}%{?with_vulkan_hw:,zink}%{?with_d3d12:,d3d12} \
403405
%else
404406
-Dgallium-drivers=llvmpipe,virgl \
405407
%endif
@@ -568,14 +570,19 @@ popd
568570
%endif
569571
%ifarch %{ix86} x86_64
570572
%{_libdir}/dri/crocus_dri.so
571-
%{_libdir}/dri/i915_dri.so
572573
%{_libdir}/dri/iris_dri.so
574+
%if 0%{?with_i915}
575+
%{_libdir}/dri/i915_dri.so
576+
%endif
573577
%endif
574578
%ifarch aarch64 x86_64 %{ix86}
575579
%if 0%{?with_asahi}
576580
%{_libdir}/dri/apple_dri.so
577581
%{_libdir}/dri/asahi_dri.so
578582
%endif
583+
%if 0%{?with_d3d12}
584+
%{_libdir}/dri/d3d12_dri.so
585+
%endif
579586
%{_libdir}/dri/ingenic-drm_dri.so
580587
%{_libdir}/dri/imx-drm_dri.so
581588
%{_libdir}/dri/imx-lcdif_dri.so
@@ -656,6 +663,9 @@ popd
656663
%if 0%{?with_radeonsi}
657664
%{_libdir}/dri/radeonsi_drv_video.so
658665
%endif
666+
%if 0%{?with_d3d12}
667+
%{_libdir}/dri/d3d12_drv_video.so
668+
%endif
659669
%{_libdir}/dri/virtio_gpu_drv_video.so
660670
%endif
661671

@@ -669,16 +679,21 @@ popd
669679
%if 0%{?with_radeonsi}
670680
%{_libdir}/vdpau/libvdpau_radeonsi.so.1*
671681
%endif
682+
%if 0%{?with_d3d12}
683+
%{_libdir}/vdpau/libvdpau_d3d12.so.1*
684+
%endif
672685
%{_libdir}/vdpau/libvdpau_virtio_gpu.so.1*
673686
%endif
674687

675688
%files vulkan-drivers
676689
%{_libdir}/libvulkan_lvp.so
677690
%{_datadir}/vulkan/icd.d/lvp_icd.*.json
678-
%{_libdir}/libvulkan_virtio.so
679-
%{_datadir}/vulkan/icd.d/virtio_icd.*.json
680691
%{_libdir}/libVkLayer_MESA_device_select.so
681692
%{_datadir}/vulkan/implicit_layer.d/VkLayer_MESA_device_select.json
693+
%if 0%{?with_virtio}
694+
%{_libdir}/libvulkan_virtio.so
695+
%{_datadir}/vulkan/icd.d/virtio_icd.*.json
696+
%endif
682697
%if 0%{?with_vulkan_hw}
683698
%{_libdir}/libvulkan_radeon.so
684699
%{_datadir}/drirc.d/00-radv-defaults.conf

0 commit comments

Comments
 (0)