diff options
| author | Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> | 2025-04-12 01:09:15 +0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-04-16 17:41:30 +0100 |
| commit | ad06e8e57fd5237d3537d154f0a25b6fb7f909dc (patch) | |
| tree | 014e81252252677c566450a99cc12cbded3d2554 | |
| parent | 8852a601df2fd297bae5e7ce8240808dc776b0b3 (diff) | |
| download | poky-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.inc | 21 |
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" |
| 90 | INHIBIT_DEFAULT_RUST_DEPS = "${@bb.utils.contains('PACKAGECONFIG', 'opencl', '', '1', d)}" | 90 | INHIBIT_DEFAULT_RUST_DEPS = "${@bb.utils.contains('PACKAGECONFIG', 'opencl', '', '1', d)}" |
| 91 | 91 | ||
| 92 | PACKAGECONFIG:append:x86 = " libclc gallium-llvm intel" | 92 | PACKAGECONFIG:append:x86 = " libclc gallium-llvm intel amd" |
| 93 | PACKAGECONFIG:append:x86-64 = " libclc gallium-llvm intel" | 93 | PACKAGECONFIG:append:x86-64 = " libclc gallium-llvm intel amd" |
| 94 | PACKAGECONFIG:append:i686 = " libclc gallium-llvm intel" | 94 | PACKAGECONFIG:append:i686 = " libclc gallium-llvm intel amd" |
| 95 | PACKAGECONFIG:append:class-native = " libclc gallium-llvm r600" | 95 | PACKAGECONFIG:append:class-native = " libclc gallium-llvm amd" |
| 96 | 96 | ||
| 97 | # "gbm" requires "opengl" | 97 | # "gbm" requires "opengl" |
| 98 | PACKAGECONFIG[gbm] = "-Dgbm=enabled,-Dgbm=disabled" | 98 | PACKAGECONFIG[gbm] = "-Dgbm=enabled,-Dgbm=disabled" |
| @@ -102,12 +102,7 @@ X11_DEPS = "xorgproto virtual/libx11 libxext libxxf86vm libxdamage libxfixes xra | |||
| 102 | PACKAGECONFIG[x11] = ",-Dglx=disabled,${X11_DEPS}" | 102 | PACKAGECONFIG[x11] = ",-Dglx=disabled,${X11_DEPS}" |
| 103 | PACKAGECONFIG[wayland] = ",,wayland-native wayland libdrm wayland-protocols" | 103 | PACKAGECONFIG[wayland] = ",,wayland-native wayland libdrm wayland-protocols" |
| 104 | 104 | ||
| 105 | VULKAN_DRIVERS_AMD = "" | 105 | VULKAN_DRIVERS_AMD = "${@bb.utils.contains('PACKAGECONFIG', 'amd', ',amd', '', d)}" |
| 106 | VULKAN_DRIVERS_AMD:x86 = ",amd" | ||
| 107 | VULKAN_DRIVERS_AMD:x86-64 = ",amd" | ||
| 108 | # i686 is a 32 bit override for mesa-native | ||
| 109 | VULKAN_DRIVERS_AMD:i686 = ",amd" | ||
| 110 | |||
| 111 | VULKAN_DRIVERS_INTEL = "${@bb.utils.contains('PACKAGECONFIG', 'intel libclc', ',intel', '', d)}" | 106 | VULKAN_DRIVERS_INTEL = "${@bb.utils.contains('PACKAGECONFIG', 'intel libclc', ',intel', '', d)}" |
| 112 | VULKAN_DRIVERS_SWRAST = ",swrast" | 107 | VULKAN_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 |
| 180 | GALLIUMDRIVERS_IRIS = "${@bb.utils.contains('PACKAGECONFIG', 'intel libclc', ',iris', '', d)}" | 175 | GALLIUMDRIVERS_IRIS = "${@bb.utils.contains('PACKAGECONFIG', 'intel libclc', ',iris', '', d)}" |
| 181 | GALLIUMDRIVERS_RADEONSI = "${@bb.utils.contains('PACKAGECONFIG', 'r600', ',radeonsi', '', d)}" | 176 | GALLIUMDRIVERS_RADEONSI = "${@bb.utils.contains('PACKAGECONFIG', 'amd', ',radeonsi', '', d)}" |
| 182 | GALLIUMDRIVERS_LLVMPIPE = ",llvmpipe" | 177 | GALLIUMDRIVERS_LLVMPIPE = ",llvmpipe" |
| 183 | # llvmpipe crashes on x32 | 178 | # llvmpipe crashes on x32 |
| 184 | GALLIUMDRIVERS_LLVMPIPE:x86-x32 = "" | 179 | GALLIUMDRIVERS_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 |
| 189 | GALLIUMDRIVERS_LLVM:append:i686 = ",svga" | 184 | GALLIUMDRIVERS_LLVM:append:i686 = ",svga" |
| 190 | 185 | ||
| 191 | PACKAGECONFIG[r600] = "" | 186 | PACKAGECONFIG[amd] = "" |
| 192 | PACKAGECONFIG[virgl] = "" | 187 | PACKAGECONFIG[virgl] = "" |
| 193 | 188 | ||
| 194 | GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'gallium-llvm', '${GALLIUMDRIVERS_LLVM}', '', d)}" | 189 | GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'gallium-llvm', '${GALLIUMDRIVERS_LLVM}', '', d)}" |
| 195 | GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'r600', ',r600', '', d)}" | 190 | GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'amd', ',r600', '', d)}" |
| 196 | GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'virgl', ',virgl', '', d)}" | 191 | GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'virgl', ',virgl', '', d)}" |
| 197 | 192 | ||
| 198 | MESA_CLC = "system" | 193 | MESA_CLC = "system" |
