* [Buildroot] [PATCH 1/4] package/mesa3d: radeonSI: specify drm platform
@ 2018-04-28 17:28 Romain Naour
2018-04-28 17:28 ` [Buildroot] [PATCH 2/4] package/mesa3d: RadeonSI needs libdrm-radeon and libdrm-amdgpu Romain Naour
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Romain Naour @ 2018-04-28 17:28 UTC (permalink / raw)
To: buildroot
When BR2_PACKAGE_MESA3D_OPENGL_EGL is selected with RadeonSI drvier,
mesa platform must be specified with drm.
Fixes:
hecking for RADEON... yes
checking for AMDGPU... yes
configure: error: radeonsi requires one of these:
1) --with-platforms=drm (X, Wayland, offscreen rendering based on DRM)
2) --with-platforms=surfaceless (offscreen only)
3) --with-platforms=android (Android only)
Recommended options: drm,x11
Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
package/mesa3d/mesa3d.mk | 2 ++
1 file changed, 2 insertions(+)
diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk
index 9857b597cf..7534bc0833 100644
--- a/package/mesa3d/mesa3d.mk
+++ b/package/mesa3d/mesa3d.mk
@@ -167,6 +167,8 @@ else ifeq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV),y)
MESA3D_PLATFORMS = drm
else ifeq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VIRGL),y)
MESA3D_PLATFORMS = drm
+else ifeq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI),y)
+MESA3D_PLATFORMS = drm
endif
ifeq ($(BR2_PACKAGE_WAYLAND),y)
MESA3D_DEPENDENCIES += wayland wayland-protocols
--
2.14.3
^ permalink raw reply related [flat|nested] 7+ messages in thread* [Buildroot] [PATCH 2/4] package/mesa3d: RadeonSI needs libdrm-radeon and libdrm-amdgpu
2018-04-28 17:28 [Buildroot] [PATCH 1/4] package/mesa3d: radeonSI: specify drm platform Romain Naour
@ 2018-04-28 17:28 ` Romain Naour
2018-04-28 20:04 ` Thomas Petazzoni
2018-04-28 17:28 ` [Buildroot] [PATCH 3/4] package/mesa3d: RadeonSI needs llvm support Romain Naour
` (2 subsequent siblings)
3 siblings, 1 reply; 7+ messages in thread
From: Romain Naour @ 2018-04-28 17:28 UTC (permalink / raw)
To: buildroot
Fixes:
checking for EXPAT... yes
checking for RADEON... no
configure: error: Package requirements (libdrm >= 2.4.71 libdrm_radeon >= 2.4.71)
Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Micha? Kalbarczyk <michal@gamecodehq.com>
---
package/mesa3d/Config.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in
index 1984e4f11c..32337a36a4 100644
--- a/package/mesa3d/Config.in
+++ b/package/mesa3d/Config.in
@@ -122,6 +122,7 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI
BR2_TOOLCHAIN_USES_GLIBC)) # elfutils
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
select BR2_PACKAGE_LIBDRM_AMDGPU
+ select BR2_PACKAGE_LIBDRM_RADEON
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
--
2.14.3
^ permalink raw reply related [flat|nested] 7+ messages in thread* [Buildroot] [PATCH 2/4] package/mesa3d: RadeonSI needs libdrm-radeon and libdrm-amdgpu
2018-04-28 17:28 ` [Buildroot] [PATCH 2/4] package/mesa3d: RadeonSI needs libdrm-radeon and libdrm-amdgpu Romain Naour
@ 2018-04-28 20:04 ` Thomas Petazzoni
2018-04-28 20:13 ` Romain Naour
0 siblings, 1 reply; 7+ messages in thread
From: Thomas Petazzoni @ 2018-04-28 20:04 UTC (permalink / raw)
To: buildroot
Hello,
On Sat, 28 Apr 2018 19:28:01 +0200, Romain Naour wrote:
> Fixes:
> checking for EXPAT... yes
> checking for RADEON... no
> configure: error: Package requirements (libdrm >= 2.4.71 libdrm_radeon >= 2.4.71)
>
> Signed-off-by: Romain Naour <romain.naour@gmail.com>
> Cc: Micha? Kalbarczyk <michal@gamecodehq.com>
> ---
> package/mesa3d/Config.in | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in
> index 1984e4f11c..32337a36a4 100644
> --- a/package/mesa3d/Config.in
> +++ b/package/mesa3d/Config.in
> @@ -122,6 +122,7 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI
> BR2_TOOLCHAIN_USES_GLIBC)) # elfutils
> select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
> select BR2_PACKAGE_LIBDRM_AMDGPU
> + select BR2_PACKAGE_LIBDRM_RADEON
So it needs both libdrm_radeon and libdrm_amdgpu ?
Thomas
--
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH 2/4] package/mesa3d: RadeonSI needs libdrm-radeon and libdrm-amdgpu
2018-04-28 20:04 ` Thomas Petazzoni
@ 2018-04-28 20:13 ` Romain Naour
0 siblings, 0 replies; 7+ messages in thread
From: Romain Naour @ 2018-04-28 20:13 UTC (permalink / raw)
To: buildroot
Hi Thomas,
Le 28/04/2018 ? 22:04, Thomas Petazzoni a ?crit?:
> Hello,
>
> On Sat, 28 Apr 2018 19:28:01 +0200, Romain Naour wrote:
>> Fixes:
>> checking for EXPAT... yes
>> checking for RADEON... no
>> configure: error: Package requirements (libdrm >= 2.4.71 libdrm_radeon >= 2.4.71)
>>
>> Signed-off-by: Romain Naour <romain.naour@gmail.com>
>> Cc: Micha? Kalbarczyk <michal@gamecodehq.com>
>> ---
>> package/mesa3d/Config.in | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in
>> index 1984e4f11c..32337a36a4 100644
>> --- a/package/mesa3d/Config.in
>> +++ b/package/mesa3d/Config.in
>> @@ -122,6 +122,7 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI
>> BR2_TOOLCHAIN_USES_GLIBC)) # elfutils
>> select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
>> select BR2_PACKAGE_LIBDRM_AMDGPU
>> + select BR2_PACKAGE_LIBDRM_RADEON
>
> So it needs both libdrm_radeon and libdrm_amdgpu ?
Indeed, see [1]
xradeonsi)
HAVE_GALLIUM_RADEONSI=yes
PKG_CHECK_MODULES([RADEON], [libdrm >= $LIBDRM_RADEON_REQUIRED libdrm_radeon
>= $LIBDRM_RADEON_REQUIRED])
PKG_CHECK_MODULES([AMDGPU], [libdrm >= $LIBDRM_AMDGPU_REQUIRED libdrm_amdgpu
>= $LIBDRM_AMDGPU_REQUIRED])
require_libdrm "radeonsi"
radeon_llvm_check $LLVM_REQUIRED_RADEONSI "radeonsi"
if test "x$enable_egl" = xyes; then
require_basic_egl "radeonsi"
fi
;;
[1] https://github.com/mesa3d/mesa/blob/master/configure.ac#L2618
Best regards,
Romain
>
> Thomas
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH 3/4] package/mesa3d: RadeonSI needs llvm support
2018-04-28 17:28 [Buildroot] [PATCH 1/4] package/mesa3d: radeonSI: specify drm platform Romain Naour
2018-04-28 17:28 ` [Buildroot] [PATCH 2/4] package/mesa3d: RadeonSI needs libdrm-radeon and libdrm-amdgpu Romain Naour
@ 2018-04-28 17:28 ` Romain Naour
2018-04-28 17:28 ` [Buildroot] [PATCH 4/4] package/mesa3d: add missing elfutils dependency with R600 and RadeonSI driver Romain Naour
2018-05-01 20:57 ` [Buildroot] [PATCH 1/4] package/mesa3d: radeonSI: specify drm platform Thomas Petazzoni
3 siblings, 0 replies; 7+ messages in thread
From: Romain Naour @ 2018-04-28 17:28 UTC (permalink / raw)
To: buildroot
Fixes:
checking for AMDGPU... yes
configure: error: --enable-llvm is required when building radeonsi
Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Micha? Kalbarczyk <michal@gamecodehq.com>
---
package/mesa3d/Config.in | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in
index 32337a36a4..d620c0ab52 100644
--- a/package/mesa3d/Config.in
+++ b/package/mesa3d/Config.in
@@ -117,21 +117,20 @@ comment "R600 driver needs a uClibc or glibc toolchain when llvm is enabled"
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 || \
- (BR2_PACKAGE_MESA3D_LLVM && (BR2_TOOLCHAIN_USES_UCLIBC || \
- BR2_TOOLCHAIN_USES_GLIBC)) # elfutils
+ depends on BR2_PACKAGE_MESA3D_LLVM
+ depends on BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC # elfutils
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
select BR2_PACKAGE_LIBDRM_AMDGPU
select BR2_PACKAGE_LIBDRM_RADEON
- select BR2_PACKAGE_LLVM_AMDGPU if BR2_PACKAGE_MESA3D_LLVM
- select BR2_PACKAGE_ELFUTILS if BR2_PACKAGE_MESA3D_LLVM
+ select BR2_PACKAGE_LLVM_AMDGPU
+ select BR2_PACKAGE_ELFUTILS
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
+# Radeon SI needs libelf
# musl is not currently compatible with elfutils
-comment "Radeon SI driver needs a uClibc or glibc toolchain when llvm is enabled"
+comment "Radeon SI driver needs a uClibc or glibc toolchain"
depends on BR2_PACKAGE_MESA3D_LLVM
depends on !(BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC)
--
2.14.3
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH 4/4] package/mesa3d: add missing elfutils dependency with R600 and RadeonSI driver
2018-04-28 17:28 [Buildroot] [PATCH 1/4] package/mesa3d: radeonSI: specify drm platform Romain Naour
2018-04-28 17:28 ` [Buildroot] [PATCH 2/4] package/mesa3d: RadeonSI needs libdrm-radeon and libdrm-amdgpu Romain Naour
2018-04-28 17:28 ` [Buildroot] [PATCH 3/4] package/mesa3d: RadeonSI needs llvm support Romain Naour
@ 2018-04-28 17:28 ` Romain Naour
2018-05-01 20:57 ` [Buildroot] [PATCH 1/4] package/mesa3d: radeonSI: specify drm platform Thomas Petazzoni
3 siblings, 0 replies; 7+ messages in thread
From: Romain Naour @ 2018-04-28 17:28 UTC (permalink / raw)
To: buildroot
Commit "add dependency on elfutils for R600 with LLVM" [1] select
elfutils package at Kconfig level without adding it the make dependency.
Enabling r600 support lead to a build issue when building from
scratch with "make mesa3d".
Fixes:
checking for RADEON... yes
configure: error: r600 requires libelf when using llvm
elfutils dependency is needed by r600 with llvm support and radeonSI.
Fixes:
checking for RADEON... yes
checking for AMDGPU... yes
configure: error: radeonsi requires libelf when using llvm
Add a new BR2_PACKAGE_MESA3D_NEEDS_ELFUTILS hidden Config.in boolean
selected by R600 and RadeonSI at Kconfig level.
When selected, BR2_PACKAGE_MESA3D_NEEDS_ELFUTILS add elfutils dependency
at make level.
[1] 92fda8761aa8024be53a8edb8c102d1ba6401bce
Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Micha? Kalbarczyk <michal@gamecodehq.com>
---
v2: Add BR2_PACKAGE_MESA3D_NEEDS_ELFUTILS option
---
package/mesa3d/Config.in | 6 ++++++
package/mesa3d/mesa3d.mk | 4 ++++
2 files changed, 10 insertions(+)
diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in
index d620c0ab52..8c1877fbc1 100644
--- a/package/mesa3d/Config.in
+++ b/package/mesa3d/Config.in
@@ -25,6 +25,10 @@ menuconfig BR2_PACKAGE_MESA3D
if BR2_PACKAGE_MESA3D
+# Some Gallium driver needs libelf when built with LLVM support
+config BR2_PACKAGE_MESA3D_NEEDS_ELFUTILS
+ bool
+
config BR2_PACKAGE_MESA3D_LLVM
bool "llvm support"
depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
@@ -104,6 +108,7 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600
select BR2_PACKAGE_LIBDRM_RADEON
select BR2_PACKAGE_LLVM_AMDGPU if BR2_PACKAGE_MESA3D_LLVM
select BR2_PACKAGE_ELFUTILS if BR2_PACKAGE_MESA3D_LLVM
+ select BR2_PACKAGE_MESA3D_NEEDS_ELFUTILS if BR2_PACKAGE_MESA3D_LLVM
select BR2_PACKAGE_MESA3D_NEEDS_XA
help
Driver for ATI/AMD Radeon R600/R700/HD5000/HD6000 GPUs.
@@ -124,6 +129,7 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI
select BR2_PACKAGE_LIBDRM_RADEON
select BR2_PACKAGE_LLVM_AMDGPU
select BR2_PACKAGE_ELFUTILS
+ select BR2_PACKAGE_MESA3D_NEEDS_ELFUTILS
select BR2_PACKAGE_MESA3D_NEEDS_XA
help
Driver for ATI/AMD Radeon HD7000/HD8000/Rx200 GPUs.
diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk
index 7534bc0833..ea26a7a4b2 100644
--- a/package/mesa3d/mesa3d.mk
+++ b/package/mesa3d/mesa3d.mk
@@ -43,6 +43,10 @@ else
MESA3D_CONF_OPTS += --disable-llvm
endif
+ifeq ($(BR2_PACKAGE_MESA3D_NEEDS_ELFUTILS),y)
+MESA3D_DEPENDENCIES += elfutils
+endif
+
# The Sourcery MIPS toolchain has a special (non-upstream) feature to
# have "compact exception handling", which unfortunately breaks with
# mesa3d, so we disable it here by passing -mno-compact-eh.
--
2.14.3
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH 1/4] package/mesa3d: radeonSI: specify drm platform
2018-04-28 17:28 [Buildroot] [PATCH 1/4] package/mesa3d: radeonSI: specify drm platform Romain Naour
` (2 preceding siblings ...)
2018-04-28 17:28 ` [Buildroot] [PATCH 4/4] package/mesa3d: add missing elfutils dependency with R600 and RadeonSI driver Romain Naour
@ 2018-05-01 20:57 ` Thomas Petazzoni
3 siblings, 0 replies; 7+ messages in thread
From: Thomas Petazzoni @ 2018-05-01 20:57 UTC (permalink / raw)
To: buildroot
Hello,
On Sat, 28 Apr 2018 19:28:00 +0200, Romain Naour wrote:
> When BR2_PACKAGE_MESA3D_OPENGL_EGL is selected with RadeonSI drvier,
> mesa platform must be specified with drm.
>
> Fixes:
> hecking for RADEON... yes
> checking for AMDGPU... yes
> configure: error: radeonsi requires one of these:
> 1) --with-platforms=drm (X, Wayland, offscreen rendering based on DRM)
> 2) --with-platforms=surfaceless (offscreen only)
> 3) --with-platforms=android (Android only)
> Recommended options: drm,x11
>
> Signed-off-by: Romain Naour <romain.naour@gmail.com>
> ---
> package/mesa3d/mesa3d.mk | 2 ++
> 1 file changed, 2 insertions(+)
Entire series applied. Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2018-05-01 20:57 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-28 17:28 [Buildroot] [PATCH 1/4] package/mesa3d: radeonSI: specify drm platform Romain Naour
2018-04-28 17:28 ` [Buildroot] [PATCH 2/4] package/mesa3d: RadeonSI needs libdrm-radeon and libdrm-amdgpu Romain Naour
2018-04-28 20:04 ` Thomas Petazzoni
2018-04-28 20:13 ` Romain Naour
2018-04-28 17:28 ` [Buildroot] [PATCH 3/4] package/mesa3d: RadeonSI needs llvm support Romain Naour
2018-04-28 17:28 ` [Buildroot] [PATCH 4/4] package/mesa3d: add missing elfutils dependency with R600 and RadeonSI driver Romain Naour
2018-05-01 20:57 ` [Buildroot] [PATCH 1/4] package/mesa3d: radeonSI: specify drm platform Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox