diff options
author | Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> | 2025-04-12 01:09:16 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-04-16 17:41:30 +0100 |
commit | c095ae793f61d19391ebd8cf737356b519b16c43 (patch) | |
tree | 28e55c9e4c15e0cc553af6ac91074a5288064305 | |
parent | ad06e8e57fd5237d3537d154f0a25b6fb7f909dc (diff) | |
download | poky-c095ae793f61d19391ebd8cf737356b519b16c43.tar.gz |
mesa: handle svga Gallium driver through PACKAGECONFIG too
For the sake of uniformity add the svga PACKAGECONFIG and use it to
guard inclusion of the svga Gallium driver.
(From OE-Core rev: 0fa6c2e6eb6c0b5eadb447bfa01a9b0930f9a9da)
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 | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index 9ddcdcd48b..fb76b5b1cc 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 amd" | 92 | PACKAGECONFIG:append:x86 = " libclc gallium-llvm intel amd svga" |
93 | PACKAGECONFIG:append:x86-64 = " libclc gallium-llvm intel amd" | 93 | PACKAGECONFIG:append:x86-64 = " libclc gallium-llvm intel amd svga" |
94 | PACKAGECONFIG:append:i686 = " libclc gallium-llvm intel amd" | 94 | PACKAGECONFIG:append:i686 = " libclc gallium-llvm intel amd svga" |
95 | PACKAGECONFIG:append:class-native = " libclc gallium-llvm amd" | 95 | PACKAGECONFIG:append:class-native = " libclc gallium-llvm amd svga" |
96 | 96 | ||
97 | # "gbm" requires "opengl" | 97 | # "gbm" requires "opengl" |
98 | PACKAGECONFIG[gbm] = "-Dgbm=enabled,-Dgbm=disabled" | 98 | PACKAGECONFIG[gbm] = "-Dgbm=enabled,-Dgbm=disabled" |
@@ -177,13 +177,11 @@ GALLIUMDRIVERS_RADEONSI = "${@bb.utils.contains('PACKAGECONFIG', 'amd', ',radeon | |||
177 | GALLIUMDRIVERS_LLVMPIPE = ",llvmpipe" | 177 | GALLIUMDRIVERS_LLVMPIPE = ",llvmpipe" |
178 | # llvmpipe crashes on x32 | 178 | # llvmpipe crashes on x32 |
179 | GALLIUMDRIVERS_LLVMPIPE:x86-x32 = "" | 179 | GALLIUMDRIVERS_LLVMPIPE:x86-x32 = "" |
180 | GALLIUMDRIVERS_LLVM = ",r300,nouveau${GALLIUMDRIVERS_LLVMPIPE}${GALLIUMDRIVERS_IRIS}${GALLIUMDRIVERS_RADEONSI}" | 180 | GALLIUMDRIVERS_SVGA = "${@bb.utils.contains('PACKAGECONFIG', 'svga', ',svga', '', d)}" |
181 | GALLIUMDRIVERS_LLVM:append:x86 = ",svga" | 181 | GALLIUMDRIVERS_LLVM = ",r300,nouveau${GALLIUMDRIVERS_LLVMPIPE}${GALLIUMDRIVERS_IRIS}${GALLIUMDRIVERS_RADEONSI}${GALLIUMDRIVERS_SVGA}" |
182 | GALLIUMDRIVERS_LLVM:append:x86-64 = ",svga" | ||
183 | # i686 is a 32 bit override for mesa-native | ||
184 | GALLIUMDRIVERS_LLVM:append:i686 = ",svga" | ||
185 | 182 | ||
186 | PACKAGECONFIG[amd] = "" | 183 | PACKAGECONFIG[amd] = "" |
184 | PACKAGECONFIG[svga] = "" | ||
187 | PACKAGECONFIG[virgl] = "" | 185 | PACKAGECONFIG[virgl] = "" |
188 | 186 | ||
189 | GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'gallium-llvm', '${GALLIUMDRIVERS_LLVM}', '', d)}" | 187 | GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'gallium-llvm', '${GALLIUMDRIVERS_LLVM}', '', d)}" |