mbox series

[0/2] mesa: disable building nouveau/r300 on non-x86/i686 machines by default

Message ID 20250612-mesa-pkgconfig-no-hardcode-llvm-v1-0-479632e13175@cherry.de
Headers show
Series mesa: disable building nouveau/r300 on non-x86/i686 machines by default | expand

Message

Quentin Schulz June 12, 2025, 12:14 p.m. UTC
Whenever building gallium-llvm drivers on non-x86/i686 machines, we
currently always build r300 and nouveau drivers but they aren't
necessarily needed.

So this makes them optional by either reusing the amd PACKAGECONFIG or
adding the new nouveau PACKAGECONFIG.

This shouldn't change anything for you except if you're building
gallium-llvm drivers for non-x86/i686 machines and want those to be
enabled, then you'll need to add amd or nouveau to your PACKAGECONFIG.

Note: not tested
Note: weirdly enough, the tegra PACKAGECONFIG enables both tegra and
nouveau gallium drivers but not via the gallium-llvm PACKAGECONFIG, so
I'm not sure nouveau is actually an llvm driver or if it is, that tegra
PACKAGECONFIG actually works standalone.

Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
---
Quentin Schulz (2):
      mesa: do not build r300 AMD gallium-llvm driver if not requested
      mesa: do not build nouveau NVIDIA gallium-llvm driver if not requested

 meta/recipes-graphics/mesa/mesa.inc | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)
---
base-commit: aad1f72e157cb58b70de5943646de3543d8844da
change-id: 20250612-mesa-pkgconfig-no-hardcode-llvm-0ea8eb10a583

Best regards,

Comments

Böszörményi Zoltán June 13, 2025, 6:40 a.m. UTC | #1
2025. 06. 12. 14:14 keltezéssel, Quentin Schulz via lists.openembedded.org írta:
> Whenever building gallium-llvm drivers on non-x86/i686 machines, we
> currently always build r300 and nouveau drivers but they aren't
> necessarily needed.

How about r600?
Dmitry Baryshkov June 13, 2025, 11:49 a.m. UTC | #2
On Fri, 13 Jun 2025 at 09:40, Böszörményi Zoltán <zboszor@gmail.com> wrote:
>
> 2025. 06. 12. 14:14 keltezéssel, Quentin Schulz via lists.openembedded.org írta:
> > Whenever building gallium-llvm drivers on non-x86/i686 machines, we
> > currently always build r300 and nouveau drivers but they aren't
> > necessarily needed.
>
> How about r600?
>

r600 is already gated by the 'amd' PACKAGECONFIG.