Bug 14416

Summary: Mesa3D missing DRI3 support for various Gallium drivers
Product: buildroot Reporter: Michael Taubert <info>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: major CC: buildroot
Priority: P5    
Version: 2021.08.2   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Host: Target:
Build:
Attachments: Patch to enable DRI3 support for specific Gallium drivers

Description Michael Taubert 2021-12-02 06:55:54 UTC
Hi!

I've found https://bugs.busybox.net/show_bug.cgi?id=13831 and can confirm that Mesa3D is not working on my Raspberry Pi 4. It turns out, that the logic in mesa3d.mk seems to be broken, as it doesn't enable DRI3 support, though it's required for V3D/VC4. Otherwise glxgears doesn't work and complains with a

Failed to open bo 1: Permission denied.

Below you will find a patch to enable DRI3 support if one of the Gallium drivers is selected which requires DRI3 support.

Best regards,
Michael

--- snip ---

--- a/mesa3d.mk	2021-12-02 07:08:41.432624186 +0100
+++ b/mesa3d.mk	2021-12-02 07:24:06.889889427 +0100
@@ -120,7 +120,11 @@
 	-Dgallium-extra-hud=true
 endif
 
-ifeq ($(BR2_PACKAGE_MESA3D_DRI_DRIVER),)
+ifeq ($(BR2_PACKAGE_MESA3D_DRI_DRIVER) \
+	$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_V3D) \
+	$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VC4) \
+	$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_LIMA) \
+	$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_PANFROST),)
 MESA3D_CONF_OPTS += \
 	-Ddri-drivers= -Ddri3=disabled
 else


--- snip ---
Comment 1 Michael Taubert 2021-12-03 06:06:52 UTC
Created attachment 9176 [details]
Patch to enable DRI3 support for specific Gallium drivers

Patch to enable DRI3 support for specific Gallium drivers.
Comment 2 Thomas Devoogdt 2024-04-05 12:25:22 UTC
Hi,

Is this still relevant?


All those DRI drivers were removed upstream:

https://gitlab.com/buildroot.org/buildroot/-/commit/6c25d1099ac238c3c5a2ce75fc91c3842a50e2cd

BR2_PACKAGE_MESA3D_DRI_DRIVER has also been dropped in that commit.

Kr,

Thomas