[Buildroot] [PATCH RESEND] package/mesa3d: make LLVM optional for radeonsi

Joseph Kogut joseph.kogut at gmail.com
Thu May 14 16:37:16 UTC 2026


Hello Romain,

On Thu, May 14, 2026 at 5:43 AM Romain Naour via buildroot
<buildroot at buildroot.org> wrote:
>
> Hello Joseph,
>
> Le 12/05/2026 à 21:29, Joseph Kogut a écrit :
> > Since mesa3d v26.0 [0], the ACO compiler has been the default over LLVM.
> > This shader compiler backend has been used for even longer by the RADV
> > vulkan driver.
> >
> > Let's make LLVM optional.
> >
> > [0] https://cgit.freedesktop.org/mesa/mesa/commit/?id=e26c28f311cc5416f6c7f5b09a53ca2b14dfb955
>
> Please update to the new gitlab repository:
> https://gitlab.freedesktop.org/mesa/mesa/-/commit/e26c28f311cc5416f6c7f5b09a53ca2b14dfb955
>

Done.

> >
> > Signed-off-by: Joseph Kogut <joseph at anodize.com>
> > ---
> >  package/mesa3d/Config.in | 3 +--
> >  1 file changed, 1 insertion(+), 2 deletions(-)
> >
> > diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in
> > index 66ebe04394..08881af5bd 100644
> > --- a/package/mesa3d/Config.in
> > +++ b/package/mesa3d/Config.in
> > @@ -252,11 +252,10 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI
> >       bool "Gallium Radeon SI driver"
> >       depends on BR2_USE_MMU # libdrm
> >       depends on BR2_i386 || BR2_x86_64
> > -     depends on BR2_PACKAGE_MESA3D_LLVM
> >       select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
> >       select BR2_PACKAGE_LIBDRM_AMDGPU
> >       select BR2_PACKAGE_LIBDRM_RADEON
> > -     select BR2_PACKAGE_LLVM_AMDGPU
> > +     select BR2_PACKAGE_LLVM_AMDGPU if BR2_PACKAGE_MESA3D_LLVM
>
> This still requires to set AMD_DEBUG=usellvm in the environment to really use
> llvm compiler for radeonsi. But we can't remove this line for the sake of
> reproducible builds.
>

I'm not sure I'm following, can you help me understand what you mean
about reproducible builds? Does this require any action from me here?

Should we add a note to the commit or Kconfig help message explaining
that the LLVM compiler requires an environment override to use?

> Reviewed-by: Romain Naour <romain.naour at smile.fr>
>
> Best regards,
> Romain
>
> >       select BR2_PACKAGE_ELFUTILS
> >       select BR2_PACKAGE_MESA3D_NEEDS_ELFUTILS
> >       select BR2_PACKAGE_MESA3D_RUSTICL_SUPPORTED_DRIVER
> >
> > ---
> > base-commit: 9684cb9b4406e01683a9b5136100d81040d56aa0
> > change-id: 20260512-radeonsi-aco-compiler-ae4e697d4848
> >
> > Best regards,
> > --
> > Joseph Kogut <joseph at anodize.com>
> >
> > _______________________________________________
> > buildroot mailing list
> > buildroot at buildroot.org
> > https://lists.buildroot.org/mailman/listinfo/buildroot
>
> _______________________________________________
> buildroot mailing list
> buildroot at buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

Best,
Joseph


More information about the buildroot mailing list