Skip to contentSkip to conversation

package/mesa3d: XvMC needs x11

PATCH In review Fabrice Fontaine 2 participants 5 messages Dec 29, 2019 – Aug 5, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/mesa3d: XvMC needs x11

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

---
 package/mesa3d/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/mesa3d/Config.in +1 -0
index 455091eb9d..844360950c 100644
@@ -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
Signature · 1 line
2.24.0
#1 lore raw

PATCH 2/2 package/mesa3d: x11 needs EGL, GLX or a vulkan driver

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

---
 package/mesa3d/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/mesa3d/Config.in +1 -0
index 844360950c..373fe7004c 100644
@@ -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
Signature · 1 line
2.24.0
#2 lore raw

PATCH 2/2 package/mesa3d: x11 needs EGL, GLX or a vulkan driver

Quoted 10 lines · On Sun, 29 Dec 2019 14:14:53 +0100 Fabrice Fontaine…

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.

package/mesa3d/Config.in config BR2_PACKAGE_MESA3D_NEEDS_X11 · line 90

Quoted 9 lines
package/mesa3d/Config.in +1 -0
index 844360950c..373fe7004c 100644
@@ -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

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#3 lore raw

Re: [Buildroot] [PATCH 2/2] package/mesa3d: x11 needs EGL, GLX or a vulkan driver

In reply to Fabrice Fontaine
Quoted 8 lines · On Sun, 29 Dec 2019 14:14:53 +0100 Fabrice Fontaine…

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

Quoted 7 lines

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

---
 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/[email protected]/.

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

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/buildroot
#4 lore raw

PATCH 1/2 package/mesa3d: XvMC needs x11

In reply to Fabrice Fontaine
Quoted 10 lines · On Sun, 29 Dec 2019 14:14:52 +0100 Fabrice Fontaine…

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

---
 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

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com