[mythtv-users] Raspberry 5 colorspace issues on wayland

Martin Bene Martin.Bene at icomedias.com
Fri Feb 2 22:50:09 UTC 2024


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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20240202/0bf967c6/attachment.htm>


More information about the mythtv-users mailing list