Mailing List Archive

Raspberry 5 colorspace issues on wayland
When running mythfrontend (master) on a raspi5 (raspi os bookwormon with wayland), both menu and playback show banding on gradients.

Same config but using X11 does not have the same problem (but does have tearing, especially on horizontal pans).

I’ve now compared mythfrontend -v playback output x11 to wayland and it confirms an issue with color depth on the display surface:

X11:
CoreContext mythrenderopengl.cpp:430 (DebugFeatures) - OpenGL: Qt OpenGL surface : RGBA: 8:8:8:0 Depth: 0 Stencil: 0

Wayland:
CoreContext mythrenderopengl.cpp:430 (DebugFeatures) - OpenGL: Qt OpenGL surface : RGBA: 5:6:6:0 Depth: 0 Stencil: 0

So the obvious question is: How do I get mythfrontend/qt/opengl/wayland to use 8:8:8 mode instead of 5:6:5? The naïve approach of changing MythRenderOpenGL::Create to request a 24 bit surcace unfortunately failed.

Adding
format.setDepthBufferSize(24);
format.setRedBufferSize(8);
format.setGreenBufferSize(8);
format.setBlueBufferSize(8);

fails under wayland with eglError 3009

Thanks for any hints,
Martin Bene,
no.disclaimer