summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa/files/0001-amd-Include-missing-llvm-IR-header-Module.h.patch
diff options
context:
space:
mode:
authorDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>2025-04-10 05:54:49 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-04-11 11:44:22 +0100
commite34a6ed07b42e4b1c4a9e21badc3e66bf747b7b0 (patch)
treecea302fbc3c37147bf6caab788fb5c57564592f8 /meta/recipes-graphics/mesa/files/0001-amd-Include-missing-llvm-IR-header-Module.h.patch
parent18ca038b7e03ac57565c9d5d3d9f6844fea92415 (diff)
downloadpoky-e34a6ed07b42e4b1c4a9e21badc3e66bf747b7b0.tar.gz
mesa: upgrade 24.0.7 -> 25.0.2
Upgrade the Mesa package, dropping applied and refreshing outstanding patches. The dri3 config option is now gone, dependencies are merged into X11 deps. The swrast gallium driver has been split into softpipe and llvmpipe drivers. Reworked OpenCL support to use mesa_clc compiler. License-Update: license text cleared and clarified. (From OE-Core rev: f9eb0468e45ee5a6a3b3195ef5e78c328c4347c9) Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/mesa/files/0001-amd-Include-missing-llvm-IR-header-Module.h.patch')
-rw-r--r--meta/recipes-graphics/mesa/files/0001-amd-Include-missing-llvm-IR-header-Module.h.patch41
1 files changed, 0 insertions, 41 deletions
diff --git a/meta/recipes-graphics/mesa/files/0001-amd-Include-missing-llvm-IR-header-Module.h.patch b/meta/recipes-graphics/mesa/files/0001-amd-Include-missing-llvm-IR-header-Module.h.patch
deleted file mode 100644
index 82ad88a079..0000000000
--- a/meta/recipes-graphics/mesa/files/0001-amd-Include-missing-llvm-IR-header-Module.h.patch
+++ /dev/null
@@ -1,41 +0,0 @@
1From 777d69cf15b80ab1f109a4936d6e4801c4b0e0f3 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 1 Jul 2024 23:09:29 -0700
4Subject: [PATCH] amd: Include missing llvm IR header Module.h
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9With LLVM-19, Module.h header is not being pulled, which results in
10compile errors e.g.
11
12src/amd/llvm/ac_llvm_helper.cpp:102:10: error: no matching function for call to ‘unwrap(LLVMOpaqueModule*&)’
13 102 | unwrap(module)->setTargetTriple(TM->getTargetTriple().getTriple());
14 | ~~~~~~^~~~~~~~
15In file included from /mnt/b/yoe/master/build/tmp/work/x86_64-linux/mesa-native/24.0.7/recipe-sysroot-native/usr/include/llvm/IR/Type.h:18,
16 from /mnt/b/yoe/master/build/tmp/work/x86_64-linux/mesa-native/24.0.7/recipe-sysroot-native/usr/include/llvm/IR/DerivedTypes.h:23,
17 from /mnt/b/yoe/master/build/tmp/work/x86_64-linux/mesa-native/24.0.7/recipe-sysroot-native/usr/include/llvm/IR/InstrTypes.h:26,
18 from /mnt/b/yoe/master/build/tmp/work/x86_64-linux/mesa-native/24.0.7/recipe-sysroot-native/usr/include/llvm/Analysis/TargetLibraryInfo.h:14,
19 from ../mesa-24.0.7/src/amd/llvm/ac_llvm_helper.cpp:8:
20
21Its getting the definition from llvm/IR/Type.h instead of Module.h and caused
22confusion to compiler
23
24Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29993]
25Signed-off-by: Khem Raj <raj.khem@gmail.com>
26---
27 src/amd/llvm/ac_llvm_helper.cpp | 1 +
28 1 file changed, 1 insertion(+)
29
30diff --git a/src/amd/llvm/ac_llvm_helper.cpp b/src/amd/llvm/ac_llvm_helper.cpp
31index 5d065279ad1..af4a50f8409 100644
32--- a/src/amd/llvm/ac_llvm_helper.cpp
33+++ b/src/amd/llvm/ac_llvm_helper.cpp
34@@ -8,6 +8,7 @@
35 #include <llvm/Analysis/TargetLibraryInfo.h>
36 #include <llvm/IR/IRBuilder.h>
37 #include <llvm/IR/LegacyPassManager.h>
38+#include <llvm/IR/Module.h>
39 #include <llvm/IR/Verifier.h>
40 #include <llvm/Target/TargetMachine.h>
41 #include <llvm/MC/MCSubtargetInfo.h>