CroqueMr
First off, thanks for RC2. It's on my 780M box now and it's looking really good.
I wanted to ask whether you'd consider supporting the OpenGL build of LibreELEC (the Generic.OpenGL device, with Kodi built for GL) as well as GLES.At the moment Dolby Vision only works on the GLES image, so I have to choose between DV for films and the GL image for games. A lot of my time goes into Kodi's game player (RetroPlayer), and some cores and shader presets only work, or only work fully, on desktop GL. It would help beyond LibreELEC too. Most desktop Linux builds of Kodi (distro packages, the flatpak) use GL rather than GLES, so a GL path is what would let your work reach those users, and anything aimed at Kodi itself would need it as well.
What I think it would take, from going through the RC2 patches: most of the Kodi side isn't tied to GLES, but about 6.5k of the ~23k lines sit in GLES-only classes that a GL build never compiles:
DVBridgeGLES (~2.9k lines)
WinSystemGbmGLESContext (~2.7k)
RendererVAAPIGLES, LinuxRendererGLES and OverlayRendererGLES, plus small bits in RendererDRMPRIMEGLES and the GLES screenshot and filter shader code
A GL build uses WinSystemGbmGLContext, RendererVAAPIGL, LinuxRendererGL and OverlayRendererGL instead. The way I'd approach it:
Move the DV/HDR output and DRM handling out of WinSystemGbmGLESContext into WinSystemGbm, or a helper both contexts share.
Make the DVBridge renderer API-neutral. libplacebo's OpenGL backend takes either a GL or a GLES context, so it should mostly come down to small GL and GLES shims for the EGL image import and the shader headers.
Mirror the VAAPI, LinuxRenderer and overlay hooks in their GL counterparts.
Add a Generic.OpenGL build so the GL side doesn't drift.
I'm happy to help with the Kodi side and to test GL builds on the 780M and know some others who would too.
Cheers,