All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Taubert <info@arachnodroid.de>
To: Arnout Vandecappelle <arnout@mind.be>,
	Peter Seiderer <ps.report@gmx.net>,
	buildroot@buildroot.org
Cc: Bernd Kuhls <bernd.kuhls@t-online.de>,
	Marek Kraus <gamelaster@outlook.com>,
	Romain Naour <romain.naour@gmail.com>
Subject: Re: [Buildroot] [PATCH v1 1/2] package/mesa3d: add config option for DRI3 support
Date: Sun, 19 Dec 2021 08:16:23 +0100	[thread overview]
Message-ID: <0fefe76e-d266-4bf4-e208-621372e42f10@arachnodroid.de> (raw)
In-Reply-To: <a9d377d8-61f7-edc1-06f6-03291c100dca@mind.be>

Hi!

Got back to this topic this morning.

According to this line for V3D/VC4:

select BR2_PACKAGE_MESA3D_DRI3 if BR2_PACKAGE_XORG7

Mesa3D will be built with DRI3 support only if xorg is going to be used 
too. Though I'm actually using xorg, and can confirm that is compiling 
properly with X, I may have a switch to wayland anytime soon. Is xorg 
really required?

I must admit that the build did not complete, due to an error with 
libnss. So it's just what I got from the build logs.

Regards,
Michael

Am 12/17/21 um 10:00 PM schrieb Arnout Vandecappelle:
> 
> 
> On 13/06/2021 00:30, Peter Seiderer wrote:
>> Add config option for DRI3 support and use it instead
>> of DRI3 enable/disable logic in *.mk file.
>>
>> Signed-off-by: Peter Seiderer <ps.report@gmx.net>
> 
>   As discussed in another thread, I applied a heavily modified version 
> of both patches to master, thanks. Please try again if master works for 
> you.
> 
>   Regards,
>   Arnout
> 
>> ---
>>   package/mesa3d/Config.in |  8 ++++++++
>>   package/mesa3d/mesa3d.mk | 12 +++++++-----
>>   2 files changed, 15 insertions(+), 5 deletions(-)
>>
>> diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in
>> index d1b3af2054..36acd9758c 100644
>> --- a/package/mesa3d/Config.in
>> +++ b/package/mesa3d/Config.in
>> @@ -16,6 +16,11 @@ menuconfig BR2_PACKAGE_MESA3D
>>   if BR2_PACKAGE_MESA3D
>> +config BR2_PACKAGE_MESA3D_DRI3
>> +    bool "Enable DRI3 support"
>> +    help
>> +      Enable DRI3 support.
>> +
>>   # Some Gallium driver needs libelf when built with LLVM support
>>   config BR2_PACKAGE_MESA3D_NEEDS_ELFUTILS
>>       bool
>> @@ -65,6 +70,8 @@ config BR2_PACKAGE_MESA3D_DRI_DRIVER
>>           !BR2_PACKAGE_MESA3D_OPENGL_GLX && \
>>           !BR2_PACKAGE_MESA3D_OPENGL_EGL && \
>>           !BR2_PACKAGE_MESA3D_OSMESA_GALLIUM
>> +    select BR2_PACKAGE_MESA3D_DRI3 if \
>> +        (BR2_PACKAGE_XORG7 && BR2_TOOLCHAIN_HAS_SYNC_4)
>>       select BR2_PACKAGE_XLIB_LIBXSHMFENCE if \
>>           (BR2_PACKAGE_XORG7 && BR2_TOOLCHAIN_HAS_SYNC_4)
>> @@ -359,6 +366,7 @@ config BR2_PACKAGE_MESA3D_VULKAN_DRIVER_INTEL
>>       depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17 # memfd.h
>>       depends on BR2_TOOLCHAIN_USES_GLIBC # ifunc, static_assert
>>       depends on BR2_PACKAGE_XORG7 # xorgproto
>> +    select BR2_PACKAGE_MESA3D_DRI3
>>       select BR2_PACKAGE_MESA3D_VULKAN_DRIVER
>>       select BR2_PACKAGE_XORGPROTO
>>       select BR2_PACKAGE_XLIB_LIBXSHMFENCE
>> diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk
>> index 5c5f8a33f3..da6e55bf93 100644
>> --- a/package/mesa3d/mesa3d.mk
>> +++ b/package/mesa3d/mesa3d.mk
>> @@ -35,6 +35,12 @@ ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM),y)
>>   MESA3D_CONF_OPTS += -Db_asneeded=false
>>   endif
>> +ifeq ($(BR2_PACKAGE_MESA3D_DRI3),y)
>> +MESA3D_CONF_OPTS += -Ddri3=enabled
>> +else
>> +MESA3D_CONF_OPTS += -Ddri3=disabled
>> +endif
>> +
>>   ifeq ($(BR2_PACKAGE_MESA3D_LLVM),y)
>>   MESA3D_DEPENDENCIES += host-llvm llvm
>>   MESA3D_MESON_EXTRA_BINARIES += 
>> llvm-config='$(STAGING_DIR)/usr/bin/llvm-config'
>> @@ -122,13 +128,10 @@ endif
>>   ifeq ($(BR2_PACKAGE_MESA3D_DRI_DRIVER),)
>>   MESA3D_CONF_OPTS += \
>> -    -Ddri-drivers= -Ddri3=disabled
>> +    -Ddri-drivers=
>>   else
>>   ifeq ($(BR2_PACKAGE_XLIB_LIBXSHMFENCE),y)
>>   MESA3D_DEPENDENCIES += xlib_libxshmfence
>> -MESA3D_CONF_OPTS += -Ddri3=enabled
>> -else
>> -MESA3D_CONF_OPTS += -Ddri3=disabled
>>   endif
>>   MESA3D_CONF_OPTS += \
>>       -Dshared-glapi=enabled \
>> @@ -142,7 +145,6 @@ MESA3D_CONF_OPTS += \
>>   else
>>   MESA3D_DEPENDENCIES += xlib_libxshmfence
>>   MESA3D_CONF_OPTS += \
>> -    -Ddri3=enabled \
>>       -Dvulkan-drivers=$(subst 
>> $(space),$(comma),$(MESA3D_VULKAN_DRIVERS-y))
>>   endif
>>
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2021-12-19  7:16 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-12 22:30 [Buildroot] [PATCH v1 1/2] package/mesa3d: add config option for DRI3 support Peter Seiderer
2021-06-12 22:30 ` [Buildroot] [PATCH v1 2/2] package/mesa3d: gallium/kmsro drivers require dri3 for X11 Peter Seiderer
2021-06-13  9:33   ` Arnout Vandecappelle
2021-06-14 21:47     ` Peter Seiderer
2021-06-13  9:25 ` [Buildroot] [PATCH v1 1/2] package/mesa3d: add config option for DRI3 support Arnout Vandecappelle
2021-06-14 21:54   ` Peter Seiderer
2021-06-15 20:19     ` Arnout Vandecappelle
2021-06-16 19:54       ` Peter Seiderer
2021-06-16 21:50         ` Arnout Vandecappelle
2021-06-16 22:21           ` Peter Seiderer
2021-12-17 21:00 ` Arnout Vandecappelle
2021-12-19  7:16   ` Michael Taubert [this message]
     [not found]   ` <c8c49a7c-fea0-c96c-ba23-4ff17a1c0d3e@arachnodroid.de>
2021-12-19  7:22     ` Michael Taubert
2021-12-20 22:00       ` Arnout Vandecappelle

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=0fefe76e-d266-4bf4-e208-621372e42f10@arachnodroid.de \
    --to=info@arachnodroid.de \
    --cc=arnout@mind.be \
    --cc=bernd.kuhls@t-online.de \
    --cc=buildroot@buildroot.org \
    --cc=gamelaster@outlook.com \
    --cc=ps.report@gmx.net \
    --cc=romain.naour@gmail.com \
    /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.