buildroot.busybox.net archive mirror
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/mesa3d: XvMC needs x11
@ 2019-12-29 13:14 Fabrice Fontaine
  2019-12-29 13:14 ` [Buildroot] [PATCH 2/2] package/mesa3d: x11 needs EGL, GLX or a vulkan driver Fabrice Fontaine
  2020-09-15 18:50 ` [Buildroot] [PATCH 1/2] package/mesa3d: XvMC needs x11 Thomas Petazzoni
  0 siblings, 2 replies; 5+ messages in thread
From: Fabrice Fontaine @ 2019-12-29 13:14 UTC (permalink / raw)
  To: buildroot

Selects BR2_PACKAGE_MESA3D_NEEDS_X11 hidden option to enable x11
platform if the user selects BR2_PACKAGE_MESA3D_XVMC

Fixes:
 - http://autobuild.buildroot.org/results/e044609e603ca68695d842d08809fdcb35bc8127

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/mesa3d/Config.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in
index 455091eb9d..844360950c 100644
--- a/package/mesa3d/Config.in
+++ b/package/mesa3d/Config.in
@@ -260,6 +260,7 @@ config BR2_PACKAGE_MESA3D_XVMC
 	depends on BR2_PACKAGE_XORG7
 	depends on BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU \
 		|| BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600
+	select BR2_PACKAGE_MESA3D_NEEDS_X11
 	select BR2_PACKAGE_XLIB_LIBXV
 	select BR2_PACKAGE_XLIB_LIBXVMC
 	help
-- 
2.24.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 2/2] package/mesa3d: x11 needs EGL, GLX or a vulkan driver
  2019-12-29 13:14 [Buildroot] [PATCH 1/2] package/mesa3d: XvMC needs x11 Fabrice Fontaine
@ 2019-12-29 13:14 ` Fabrice Fontaine
  2020-09-15 19:05   ` Thomas Petazzoni
  2021-08-05 19:54   ` Thomas Petazzoni
  2020-09-15 18:50 ` [Buildroot] [PATCH 1/2] package/mesa3d: XvMC needs x11 Thomas Petazzoni
  1 sibling, 2 replies; 5+ messages in thread
From: Fabrice Fontaine @ 2019-12-29 13:14 UTC (permalink / raw)
  To: buildroot

As specified in meson.build, x11 platform needs EGL, GLX or a vulkan
driver:

if with_platform_x11
  if with_any_vk or with_egl or (with_glx == 'dri' and with_dri_platform == 'drm')
    pre_args += '-DHAVE_X11_PLATFORM'
  endif

Fixes:
 - http://autobuild.buildroot.org/results/e044609e603ca68695d842d08809fdcb35bc8127

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/mesa3d/Config.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in
index 844360950c..373fe7004c 100644
--- a/package/mesa3d/Config.in
+++ b/package/mesa3d/Config.in
@@ -87,6 +87,7 @@ config BR2_PACKAGE_MESA3D_NEEDS_X11
 	bool
 	depends on BR2_PACKAGE_XORG7
 	select BR2_PACKAGE_LIBXCB
+	select BR2_PACKAGE_MESA3D_OPENGL_EGL if !(BR2_PACKAGE_MESA3D_OPENGL_GLX || BR2_PACKAGE_MESA3D_VULKAN_DRIVER)
 	select BR2_PACKAGE_XLIB_LIBX11
 	select BR2_PACKAGE_XLIB_LIBXDAMAGE
 	select BR2_PACKAGE_XLIB_LIBXEXT
-- 
2.24.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 1/2] package/mesa3d: XvMC needs x11
  2019-12-29 13:14 [Buildroot] [PATCH 1/2] package/mesa3d: XvMC needs x11 Fabrice Fontaine
  2019-12-29 13:14 ` [Buildroot] [PATCH 2/2] package/mesa3d: x11 needs EGL, GLX or a vulkan driver Fabrice Fontaine
@ 2020-09-15 18:50 ` Thomas Petazzoni
  1 sibling, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2020-09-15 18:50 UTC (permalink / raw)
  To: buildroot

On Sun, 29 Dec 2019 14:14:52 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Selects BR2_PACKAGE_MESA3D_NEEDS_X11 hidden option to enable x11
> platform if the user selects BR2_PACKAGE_MESA3D_XVMC
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/e044609e603ca68695d842d08809fdcb35bc8127
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  package/mesa3d/Config.in | 1 +
>  1 file changed, 1 insertion(+)

Turns out this was fixed by a patch from Bernd, submitted many months
later, but we had forgotten about your older patch. Sorry about that.
See commit c35fe399cdae023005a1d156fd913ad6d7f7d177.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 2/2] package/mesa3d: x11 needs EGL, GLX or a vulkan driver
  2019-12-29 13:14 ` [Buildroot] [PATCH 2/2] package/mesa3d: x11 needs EGL, GLX or a vulkan driver Fabrice Fontaine
@ 2020-09-15 19:05   ` Thomas Petazzoni
  2021-08-05 19:54   ` Thomas Petazzoni
  1 sibling, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2020-09-15 19:05 UTC (permalink / raw)
  To: buildroot

On Sun, 29 Dec 2019 14:14:53 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> As specified in meson.build, x11 platform needs EGL, GLX or a vulkan
> driver:
> 
> if with_platform_x11
>   if with_any_vk or with_egl or (with_glx == 'dri' and with_dri_platform == 'drm')
>     pre_args += '-DHAVE_X11_PLATFORM'
>   endif
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/e044609e603ca68695d842d08809fdcb35bc8127

This autobuilder failure seems related to the XvMC issue fixed by PATCH
1/2 in this series.

> diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in
> index 844360950c..373fe7004c 100644
> --- a/package/mesa3d/Config.in
> +++ b/package/mesa3d/Config.in
> @@ -87,6 +87,7 @@ config BR2_PACKAGE_MESA3D_NEEDS_X11
>  	bool
>  	depends on BR2_PACKAGE_XORG7
>  	select BR2_PACKAGE_LIBXCB
> +	select BR2_PACKAGE_MESA3D_OPENGL_EGL if !(BR2_PACKAGE_MESA3D_OPENGL_GLX || BR2_PACKAGE_MESA3D_VULKAN_DRIVER)

I am rather confused but this. How is having a Vulkan driver at the
same "level" as having either EGL or GLX ?

Shouldn't it be the responsibility of whoever selects
BR2_PACKAGE_MESA3D_NEEDS_X11 to define whether EGL or GLX is used. It
seems a bit "random" to me that EGL is selected if neither GLX nor a
Vulkan driver are enabled.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Buildroot] [PATCH 2/2] package/mesa3d: x11 needs EGL, GLX or a vulkan driver
  2019-12-29 13:14 ` [Buildroot] [PATCH 2/2] package/mesa3d: x11 needs EGL, GLX or a vulkan driver Fabrice Fontaine
  2020-09-15 19:05   ` Thomas Petazzoni
@ 2021-08-05 19:54   ` Thomas Petazzoni
  1 sibling, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2021-08-05 19:54 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: Bernd Kuhls, Romain Naour, buildroot

On Sun, 29 Dec 2019 14:14:53 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> As specified in meson.build, x11 platform needs EGL, GLX or a vulkan
> driver:
> 
> if with_platform_x11
>   if with_any_vk or with_egl or (with_glx == 'dri' and with_dri_platform == 'drm')
>     pre_args += '-DHAVE_X11_PLATFORM'
>   endif
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/e044609e603ca68695d842d08809fdcb35bc8127
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  package/mesa3d/Config.in | 1 +
>  1 file changed, 1 insertion(+)

It has been such a long time, and mesa3d has seen so many chnages
since, that I doubt this patch still makes sense in its current form.
Could you respin the patch if it still fixes an issue that exists
today? In fact, you never replied to the feedback I gave, see
https://patchwork.ozlabs.org/project/buildroot/patch/20191229131453.327907-2-fontaine.fabrice@gmail.com/.

So I'll mark the patch as Rejected for now, but don't hesitate to
respin if you think this patch is still needed, but taking into account
the questions I had raised.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-08-05 19:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-29 13:14 [Buildroot] [PATCH 1/2] package/mesa3d: XvMC needs x11 Fabrice Fontaine
2019-12-29 13:14 ` [Buildroot] [PATCH 2/2] package/mesa3d: x11 needs EGL, GLX or a vulkan driver Fabrice Fontaine
2020-09-15 19:05   ` Thomas Petazzoni
2021-08-05 19:54   ` Thomas Petazzoni
2020-09-15 18:50 ` [Buildroot] [PATCH 1/2] package/mesa3d: XvMC needs x11 Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).