All of lore.kernel.org
 help / color / mirror / Atom feed
From: Romain Naour <romain.naour@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] package/mesa3d: add Radeon SI support
Date: Sat, 28 Apr 2018 15:55:23 +0200	[thread overview]
Message-ID: <2c8ac98c-ab4d-9e5a-5496-3265311bfcc2@gmail.com> (raw)
In-Reply-To: <591797C1-62B3-4F20-8E68-1ABAE1E66218@gamecodehq.com>

Hi Michal,

Le 27/04/2018 ? 16:07, Micha? Kalbarczyk a ?crit?:
> From adff41d0ec39d5e89ce713c88edb0ee6468c7236 Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?Micha=C5=82=20Kalbarczyk?= <fazibear@gmail.com>
> Date: Fri, 27 Apr 2018 15:49:15 +0200
> Subject: [PATCH 1/1] package/mesa3d: add Radeon SI support
> MIME-Version: 1.0
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: 8bit

Thanks for this contribution!
I know it's too late since the patch is already applied but here is my review.

> Signed-off-by: Micha? Kalbarczyk <fazibear@gmail.com>
> ---
>  package/mesa3d/Config.in | 20 ++++++++++++++++++++
>  package/mesa3d/mesa3d.mk |  1 +
>  2 files changed, 21 insertions(+)
> 
> diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in
> index bd3d050e29..cbaa20370f 100644
> --- a/package/mesa3d/Config.in
> +++ b/package/mesa3d/Config.in
> @@ -108,6 +108,26 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600
>  	help
>  	  Driver for ATI/AMD Radeon R600/R700/HD5000/HD6000 GPUs.
> 
> +config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI
> +	bool "Gallium Radeon SI driver"
> +	depends on BR2_i386 || BR2_x86_64
> +	depends on !BR2_PACKAGE_MESA3D_LLVM || \

The RadeonSI support require LLVM.

checking for AMDGPU... yes
configure: error: --enable-llvm is required when building radeonsi

> +		(BR2_PACKAGE_MESA3D_LLVM && (BR2_TOOLCHAIN_USES_UCLIBC || \
> +			BR2_TOOLCHAIN_USES_GLIBC)) # elfutils
> +	select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
> +	select BR2_PACKAGE_LIBDRM_AMDGPU

In my previous review, mesa is checking for libdrm-amdgpu and libdrm-radeon [1]

checking for EXPAT... yes
checking for RADEON... no
configure: error: Package requirements (libdrm >= 2.4.71 libdrm_radeon >= 2.4.71)

> +	select BR2_PACKAGE_LLVM_AMDGPU if BR2_PACKAGE_MESA3D_LLVM
> +	select BR2_PACKAGE_ELFUTILS if BR2_PACKAGE_MESA3D_LLVM
> +	select BR2_PACKAGE_MESA3D_NEEDS_XA
> +	help
> +	  Driver for ATI/AMD Radeon HD7000/HD8000/Rx200 GPUs.
> +
> +# Radeon SI needs libelf when Mesa3D is built with LLVM support
> +# musl is not currently compatible with elfutils
> +comment "Radeon SI driver needs a uClibc or glibc toolchain when llvm is enabled"
> +	depends on BR2_PACKAGE_MESA3D_LLVM
> +	depends on !(BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC)

The comment should be updated accordingly since llvm is mandatory.

Best regards,
Romain

[1] http://lists.busybox.net/pipermail/buildroot/2018-April/219308.html

> +
>  # R600 needs libelf when Mesa3D is built with LLVM support
>  # musl is not currently compatible with elfutils
>  comment "R600 driver needs a uClibc or glibc toolchain when llvm is enabled"
> diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk
> index e93490c042..9857b597cf 100644
> --- a/package/mesa3d/mesa3d.mk
> +++ b/package/mesa3d/mesa3d.mk
> @@ -80,6 +80,7 @@ endif
>  MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV)  += etnaviv imx
>  MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU)  += nouveau
>  MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600)     += r600
> +MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI) += radeonsi
>  MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SVGA)     += svga
>  MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST)   += swrast
>  MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VC4)      += vc4
> --
> 2.17.0
> 

  parent reply	other threads:[~2018-04-28 13:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-27 14:07 [Buildroot] [PATCH 1/1] package/mesa3d: add Radeon SI support Michał Kalbarczyk
2018-04-28 13:33 ` Thomas Petazzoni
2018-04-28 13:55 ` Romain Naour [this message]
2018-04-28 14:59   ` Michał Kalbarczyk
2018-04-28 15:03     ` Romain Naour

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2c8ac98c-ab4d-9e5a-5496-3265311bfcc2@gmail.com \
    --to=romain.naour@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.