Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH v2 0/7] mesa: upgrade to 25.0.2
@ 2025-03-27 22:18 Dmitry Baryshkov
  2025-03-27 22:18 ` [PATCH v2 1/7] llvm: move libLLVM.so.N.M to llvm-libllvm package Dmitry Baryshkov
                   ` (8 more replies)
  0 siblings, 9 replies; 20+ messages in thread
From: Dmitry Baryshkov @ 2025-03-27 22:18 UTC (permalink / raw)
  To: openembedded-core; +Cc: Khem Raj

libclc is required in order to build Intel drivers in Mesa 24.1 and
later. Thus OE-Core is currently locked to the 24.0.x branch, which is
no longer maintained, having last release in June 2024.

A clean solution is to package Clang, then use it to build libclc and
SPIRV-LLVM-Translator (required for Mesa OpenCL support). However
creating proper recipes for Clang is a long process (ongoing by Khem
Raj).

This patchset attempts to solve the issue in a simpler way: by building
libclc and SPIRV-LLVM-Translator together with the LLVM. This way we
don't have to create target Clang recipes, there is no extra toolchain
to support, etc. Clang binaries are creted as a part of the build
process (in order to support building target packages), however it only
hits the LLVM sysroot-native and is only used by the LLVM target build.

Future work by Khem (once Clang is properly supported in OE-Core) should
allow us to create proper recipes for libclc and spirv-llvm-translator
and drop them from the llvm / clang recipe.

I think this approach provides a good balance between OE-Core being
stuck with the outdated Mesa release and being able to upgrade it,
bringing support for new hardware.

Last two patches of the series bring in RustiCL support, a new OpenCL
implementation within Mesa. They are optional for the sake of the
upgrade and can be dropped if there is any issue with those. RustiCL
support is mostly compile-tested at this point.

Changes since v1:
- Dropped YOCTO_ALTERNATE_LIBDIR patch
- Reworked mesa / LLVM integration to always use get_option('libdir')
- Reenabled AMD Vulkan driver (got disabled because of c&p error)
- Moved mesa-clc options to the libclc PACKAGECONFIG to fix several
  build errors

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>

Dmitry Baryshkov (6):
  llvm: move libLLVM.so.N.M to llvm-libllvm package
  llvm: use OECMAKE_SOURCEPATH to specify cmake dir
  llvm: support building libclc
  llvm: add SPIRV-LLVM-Translator support
  mesa: upgrade 24.0.7 -> 25.0.2
  bindgen-cli: a tool to generate Rust bindings

Zoltán Böszörményi (1):
  mesa: add support for RustiCL under PACKAGECONFIG "opencl"

 meta/conf/distro/include/maintainers.inc      |   1 +
 .../bindgen-cli/bindgen-cli-crates.inc        | 186 ++++++++++++++++++
 .../bindgen-cli/bindgen-cli_0.71.1.bb         |  19 ++
 ...ossCompile-pass-SPIR-V-headers-path-.patch |  40 ++++
 .../llvm/llvm/fix-native-compilation.patch    |  67 +++++++
 .../llvm/llvm/spirv-internal-build.patch      |  27 +++
 meta/recipes-devtools/llvm/llvm_20.1.0.bb     |  76 ++++++-
 ...-meson-do-not-pull-in-clc-for-clover.patch |  53 -----
 ...lude-missing-llvm-IR-header-Module.h.patch |  41 ----
 .../0001-drisw-fix-build-without-dri3.patch   |  58 ------
 ...on-t-encode-build-path-into-binaries.patch |  46 ++++-
 ...son-use-target-path-for-Clang-libdir.patch |  57 ++++++
 ...cross-compilation-arguments-to-LLVM-.patch |  64 ++++++
 ...on-t-try-zink-if-not-enabled-in-mesa.patch |  42 ----
 meta/recipes-graphics/mesa/mesa.inc           | 102 +++++-----
 15 files changed, 625 insertions(+), 254 deletions(-)
 create mode 100644 meta/recipes-devtools/bindgen-cli/bindgen-cli-crates.inc
 create mode 100644 meta/recipes-devtools/bindgen-cli/bindgen-cli_0.71.1.bb
 create mode 100644 meta/recipes-devtools/llvm/llvm/0001-cmake-modules-CrossCompile-pass-SPIR-V-headers-path-.patch
 create mode 100644 meta/recipes-devtools/llvm/llvm/fix-native-compilation.patch
 create mode 100644 meta/recipes-devtools/llvm/llvm/spirv-internal-build.patch
 delete mode 100644 meta/recipes-graphics/mesa/files/0001-Revert-meson-do-not-pull-in-clc-for-clover.patch
 delete mode 100644 meta/recipes-graphics/mesa/files/0001-amd-Include-missing-llvm-IR-header-Module.h.patch
 delete mode 100644 meta/recipes-graphics/mesa/files/0001-drisw-fix-build-without-dri3.patch
 create mode 100644 meta/recipes-graphics/mesa/files/0001-meson-use-target-path-for-Clang-libdir.patch
 create mode 100644 meta/recipes-graphics/mesa/files/0001-rusticl-provide-cross-compilation-arguments-to-LLVM-.patch
 delete mode 100644 meta/recipes-graphics/mesa/files/0002-glxext-don-t-try-zink-if-not-enabled-in-mesa.patch

-- 
2.39.5



^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2025-03-28 11:21 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-27 22:18 [PATCH v2 0/7] mesa: upgrade to 25.0.2 Dmitry Baryshkov
2025-03-27 22:18 ` [PATCH v2 1/7] llvm: move libLLVM.so.N.M to llvm-libllvm package Dmitry Baryshkov
2025-03-27 22:18 ` [PATCH v2 2/7] llvm: use OECMAKE_SOURCEPATH to specify cmake dir Dmitry Baryshkov
2025-03-27 22:18 ` [PATCH v2 3/7] llvm: support building libclc Dmitry Baryshkov
2025-03-28  9:35   ` [OE-core] " Alexander Kanavin
2025-03-28 10:55     ` Dmitry Baryshkov
2025-03-28 11:00       ` Alexander Kanavin
2025-03-27 22:18 ` [PATCH v2 4/7] llvm: add SPIRV-LLVM-Translator support Dmitry Baryshkov
2025-03-28  9:42   ` [OE-core] " Alexander Kanavin
2025-03-27 22:18 ` [PATCH v2 5/7] mesa: upgrade 24.0.7 -> 25.0.2 Dmitry Baryshkov
2025-03-28  9:57   ` [OE-core] " Alexander Kanavin
2025-03-27 22:18 ` [PATCH v2 6/7] bindgen-cli: a tool to generate Rust bindings Dmitry Baryshkov
2025-03-27 22:18 ` [PATCH v2 7/7] mesa: add support for RustiCL under PACKAGECONFIG "opencl" Dmitry Baryshkov
2025-03-28  9:59   ` [OE-core] " Alexander Kanavin
2025-03-28  4:33 ` [PATCH v2 0/7] mesa: upgrade to 25.0.2 Khem Raj
2025-03-28 11:01   ` Dmitry Baryshkov
2025-03-28 11:03     ` [OE-core] " Alexander Kanavin
2025-03-28 11:20       ` Dmitry Baryshkov
2025-03-28  9:18 ` Mathieu Dubois-Briand
2025-03-28 10:56   ` Dmitry Baryshkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox