v3d: missing broadcom uif support causes spam in xorg logs
Describe the issue
Please take a look at the issue for RPi firmware (kernel). It describes the case of running EGL/OpenGL application without wm and compositor. Testcase.
case 1) Prior to the fix for the kernel the testcase was producing garbled image.
After the fix the image is rendering correctly now but I've got tons of logs at /var/log/Xorg.log
with repeating messages:
(WW) modeset(0): flip queue failed: Invalid argument
(WW) modeset(0): Page flip failed: Invalid argument
(EE) modeset(0): present flip failed
case 2) Even before fix it was possible to work around garbled image issue by running eglSwapInterval(0)
. But using the workaround also results into Xorg log being spammed.
I'm not familiar with Mesa codebase, but I was able to rebuild mesa packages for raspbian with the patch attachedmesa-broadcom-uif.patch. The patch fixes log spam for case 1 but doesn't fix it for case 2.
P.S.: I've faced the same issue with Qt5 application running with EGLFS/X11 backend.
System information
System: Host: raspberrypi Kernel: 5.4.51-v7l+ armv7l bits: 32 compiler: gcc v: 4.9.3 Desktop: N/A dm: LightDM
Distro: Raspbian GNU/Linux 10 (buster)
Argument "Raspberry Pi 4 Model B Rev 1.1" isn't numeric in sprintf at /usr/bin/inxi line 6969.
CPU: Topology: Quad Core model: ARMv7 v7l variant: cortex-a72 bits: 32 type: MCP arch: v7l rev: 3
features: Use -f option to see features bogomips: 1080
Speed: 1500 MHz min/max: 600/1500 MHz Core speeds (MHz): 1: 1500 2: 1500 3: 1500 4: 1500
Graphics: Device-1: bcm2711-vc5 driver: vc4_drm v: N/A bus ID: N/A chip ID: brcm:gpu
Device-2: bcm2711-hdmi0 driver: N/A bus ID: N/A chip ID: brcm:soc
Device-3: bcm2711-hdmi1 driver: N/A bus ID: N/A chip ID: brcm:soc
Display: tty server: X.Org 1.20.4 driver: modesetting unloaded: fbdev resolution: 1920x1080~60Hz
OpenGL: renderer: V3D 4.2 v: 2.1 Mesa 19.3.2 direct render: Yes
Example of spammed Xorg.0.log