summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>2025-04-12 01:09:15 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-04-16 17:41:30 +0100
commitad06e8e57fd5237d3537d154f0a25b6fb7f909dc (patch)
tree014e81252252677c566450a99cc12cbded3d2554
parent8852a601df2fd297bae5e7ce8240808dc776b0b3 (diff)
downloadpoky-ad06e8e57fd5237d3537d154f0a25b6fb7f909dc.tar.gz
mesa: introduce amd PACKAGECONFIG
Follow the example of other hardware platforms and introduce a separate PACKAGECONFIG knbob for all AMD/ATI cards. Enable it by default on x86 platforms. (From OE-Core rev: 6a2170ea7722c214412c05a7b98eede41611bb64) Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-graphics/mesa/mesa.inc21
1 files changed, 8 insertions, 13 deletions
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index 1fb824d8ab..9ddcdcd48b 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -89,10 +89,10 @@ PACKAGECONFIG = " \
89# skip all Rust dependencies if we are not building OpenCL" 89# skip all Rust dependencies if we are not building OpenCL"
90INHIBIT_DEFAULT_RUST_DEPS = "${@bb.utils.contains('PACKAGECONFIG', 'opencl', '', '1', d)}" 90INHIBIT_DEFAULT_RUST_DEPS = "${@bb.utils.contains('PACKAGECONFIG', 'opencl', '', '1', d)}"
91 91
92PACKAGECONFIG:append:x86 = " libclc gallium-llvm intel" 92PACKAGECONFIG:append:x86 = " libclc gallium-llvm intel amd"
93PACKAGECONFIG:append:x86-64 = " libclc gallium-llvm intel" 93PACKAGECONFIG:append:x86-64 = " libclc gallium-llvm intel amd"
94PACKAGECONFIG:append:i686 = " libclc gallium-llvm intel" 94PACKAGECONFIG:append:i686 = " libclc gallium-llvm intel amd"
95PACKAGECONFIG:append:class-native = " libclc gallium-llvm r600" 95PACKAGECONFIG:append:class-native = " libclc gallium-llvm amd"
96 96
97# "gbm" requires "opengl" 97# "gbm" requires "opengl"
98PACKAGECONFIG[gbm] = "-Dgbm=enabled,-Dgbm=disabled" 98PACKAGECONFIG[gbm] = "-Dgbm=enabled,-Dgbm=disabled"
@@ -102,12 +102,7 @@ X11_DEPS = "xorgproto virtual/libx11 libxext libxxf86vm libxdamage libxfixes xra
102PACKAGECONFIG[x11] = ",-Dglx=disabled,${X11_DEPS}" 102PACKAGECONFIG[x11] = ",-Dglx=disabled,${X11_DEPS}"
103PACKAGECONFIG[wayland] = ",,wayland-native wayland libdrm wayland-protocols" 103PACKAGECONFIG[wayland] = ",,wayland-native wayland libdrm wayland-protocols"
104 104
105VULKAN_DRIVERS_AMD = "" 105VULKAN_DRIVERS_AMD = "${@bb.utils.contains('PACKAGECONFIG', 'amd', ',amd', '', d)}"
106VULKAN_DRIVERS_AMD:x86 = ",amd"
107VULKAN_DRIVERS_AMD:x86-64 = ",amd"
108# i686 is a 32 bit override for mesa-native
109VULKAN_DRIVERS_AMD:i686 = ",amd"
110
111VULKAN_DRIVERS_INTEL = "${@bb.utils.contains('PACKAGECONFIG', 'intel libclc', ',intel', '', d)}" 106VULKAN_DRIVERS_INTEL = "${@bb.utils.contains('PACKAGECONFIG', 'intel libclc', ',intel', '', d)}"
112VULKAN_DRIVERS_SWRAST = ",swrast" 107VULKAN_DRIVERS_SWRAST = ",swrast"
113# Crashes on x32 108# Crashes on x32
@@ -178,7 +173,7 @@ GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'zink', ',zink',
178 173
179# radeonsi requires LLVM 174# radeonsi requires LLVM
180GALLIUMDRIVERS_IRIS = "${@bb.utils.contains('PACKAGECONFIG', 'intel libclc', ',iris', '', d)}" 175GALLIUMDRIVERS_IRIS = "${@bb.utils.contains('PACKAGECONFIG', 'intel libclc', ',iris', '', d)}"
181GALLIUMDRIVERS_RADEONSI = "${@bb.utils.contains('PACKAGECONFIG', 'r600', ',radeonsi', '', d)}" 176GALLIUMDRIVERS_RADEONSI = "${@bb.utils.contains('PACKAGECONFIG', 'amd', ',radeonsi', '', d)}"
182GALLIUMDRIVERS_LLVMPIPE = ",llvmpipe" 177GALLIUMDRIVERS_LLVMPIPE = ",llvmpipe"
183# llvmpipe crashes on x32 178# llvmpipe crashes on x32
184GALLIUMDRIVERS_LLVMPIPE:x86-x32 = "" 179GALLIUMDRIVERS_LLVMPIPE:x86-x32 = ""
@@ -188,11 +183,11 @@ GALLIUMDRIVERS_LLVM:append:x86-64 = ",svga"
188# i686 is a 32 bit override for mesa-native 183# i686 is a 32 bit override for mesa-native
189GALLIUMDRIVERS_LLVM:append:i686 = ",svga" 184GALLIUMDRIVERS_LLVM:append:i686 = ",svga"
190 185
191PACKAGECONFIG[r600] = "" 186PACKAGECONFIG[amd] = ""
192PACKAGECONFIG[virgl] = "" 187PACKAGECONFIG[virgl] = ""
193 188
194GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'gallium-llvm', '${GALLIUMDRIVERS_LLVM}', '', d)}" 189GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'gallium-llvm', '${GALLIUMDRIVERS_LLVM}', '', d)}"
195GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'r600', ',r600', '', d)}" 190GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'amd', ',r600', '', d)}"
196GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'virgl', ',virgl', '', d)}" 191GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'virgl', ',virgl', '', d)}"
197 192
198MESA_CLC = "system" 193MESA_CLC = "system"