From 5a0e9d4ed7ba90d84f088422d9839fc73f20595f Mon Sep 17 00:00:00 2001 From: Anders Rytter Hansen Date: Wed, 26 Feb 2025 09:27:30 +0100 Subject: [PATCH 1/3] mesa: use Polly --- my-ostree-os/mesa.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/my-ostree-os/mesa.spec b/my-ostree-os/mesa.spec index a422c86..af81f3d 100644 --- a/my-ostree-os/mesa.spec +++ b/my-ostree-os/mesa.spec @@ -95,6 +95,7 @@ BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: clang BuildRequires: lld +BuildRequires: polly BuildRequires: gettext %if 0%{?with_hardware} BuildRequires: kernel-headers @@ -409,7 +410,7 @@ export MESON_PACKAGE_CACHE_DIR="%{cargo_registry}/" %rewrite_wrap_file paste %endif -CFLAGS="$CFLAGS -march=skylake -mtune=skylake -O3" CXXFLAGS="$CXXFLAGS -march=skylake -mtune=skylake -O3" %meson \ +CFLAGS="$CFLAGS -march=skylake -mtune=skylake -O3 -fplugin=/usr/lib64/llvm19/lib/libPolly.so.19.1 -mllvm -polly" CXXFLAGS="$CXXFLAGS -march=skylake -mtune=skylake -O3 -fplugin=/usr/lib64/llvm19/lib/libPolly.so.19.1 -mllvm -polly" %meson \ -Dplatforms=x11,wayland \ -Dosmesa=true \ --buildtype=release \ From ae7074e35b9b6ef74274f6c851c023b76ce587a6 Mon Sep 17 00:00:00 2001 From: Anders Rytter Hansen Date: Mon, 9 Jun 2025 19:16:12 +0200 Subject: [PATCH 2/3] Enable Polly --- my-ostree-os/mesa/mesa.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/my-ostree-os/mesa/mesa.spec b/my-ostree-os/mesa/mesa.spec index 27cabea..1e679b2 100644 --- a/my-ostree-os/mesa/mesa.spec +++ b/my-ostree-os/mesa/mesa.spec @@ -71,7 +71,7 @@ Name: mesa Summary: Mesa graphics libraries %global ver 25.0.7 Version: %{lua:ver = string.gsub(rpm.expand("%{ver}"), "-", "~"); print(ver)} -Release: 10.clang.skylake%{?dist} +Release: 11.clang.skylake%{?dist} License: MIT AND BSD-3-Clause AND SGI-B-2.0 URL: http://www.mesa3d.org @@ -119,6 +119,7 @@ BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: clang BuildRequires: lld +BuildRequires: polly BuildRequires: gettext %if 0%{?with_hardware} BuildRequires: kernel-headers @@ -418,7 +419,7 @@ export MESON_PACKAGE_CACHE_DIR="%{cargo_registry}/" %rewrite_wrap_file paste %endif -CFLAGS="$CFLAGS -march=skylake -mtune=skylake -O3" CXXFLAGS="$CXXFLAGS -march=skylake -mtune=skylake -O3" %meson \ +CFLAGS="$CFLAGS -march=skylake -mtune=skylake -O3 -mllvm -polly" CXXFLAGS="$CXXFLAGS -march=skylake -mtune=skylake -O3 -mllvm -polly" %meson \ -Dplatforms=x11,wayland \ -Dosmesa=true \ --buildtype=release \ From 5f906325653412248591bca88755964eb4233a90 Mon Sep 17 00:00:00 2001 From: Anders Rytter Hansen Date: Mon, 9 Jun 2025 19:22:17 +0200 Subject: [PATCH 3/3] add plugin .so file --- my-ostree-os/mesa/mesa.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/my-ostree-os/mesa/mesa.spec b/my-ostree-os/mesa/mesa.spec index 1e679b2..b29a640 100644 --- a/my-ostree-os/mesa/mesa.spec +++ b/my-ostree-os/mesa/mesa.spec @@ -419,7 +419,7 @@ export MESON_PACKAGE_CACHE_DIR="%{cargo_registry}/" %rewrite_wrap_file paste %endif -CFLAGS="$CFLAGS -march=skylake -mtune=skylake -O3 -mllvm -polly" CXXFLAGS="$CXXFLAGS -march=skylake -mtune=skylake -O3 -mllvm -polly" %meson \ +CFLAGS="$CFLAGS -march=skylake -mtune=skylake -O3 -fplugin=LLVMPolly.so -mllvm -polly" CXXFLAGS="$CXXFLAGS -march=skylake -mtune=skylake -O3 -fplugin=LLVMPolly.so -mllvm -polly" %meson \ -Dplatforms=x11,wayland \ -Dosmesa=true \ --buildtype=release \