Posts: 7,658
Joined: Jun 2011
Reputation:
288
As for why we don't use GLES for the PPA: historically GL was (much) better supported and had some features GLES didn't. This has changed by now and I actually do consider changing the PPA to GLES.
If we do that it will be nightlies (=v21) first for a while, so it gets some sufficient testing.
Posts: 23,468
Joined: Aug 2011
Reputation:
1,101
fritsch
Team-Kodi Developer
Posts: 23,468
GL supports PBOs, supports YUV scaling and GL 4.x shaders for efficient lookup and scaling -> 720p to 4k upscaling use-case
GLES supports both not
GLES supports 8 bit visuals with the HDR knob if GLES is in use, which it is to my knowledge for every desktop (x64) render chain.
So - if we want the 8 bit HDR light is enabled effect for e.g. intel with vaapi, which is the only desktop hwaccel working for GBM, we can add the HDR hack into GL as well. Would be great though to properly run the output in e.g. 12 bit (which intel is doing under the hood anyways) with modern smartphones and properly updither for 8 bit content until we can properly switch the output formats (GL visuals and mode)
Other than that: There is currently no "mainline ARM" chip that we really support where the entire HDR chain would properly work.
If my understanding is wrong for intel + vaapi via GBM - I kindly ask for correction with technical explanation.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Posts: 6,810
Joined: Jul 2010
Reputation:
198
2023-02-19, 11:30
(This post was last modified: 2023-02-19, 13:35 by FernetMenta. Edited 1 time in total.)
Pretending HDR by passthing through metadata and setting HDR colorspace at the TV but outputting tonemapped 8 bit for legacy 8 bit colorspace is nonsense and worse than having no HDR at all.
Posts: 23,468
Joined: Aug 2011
Reputation:
1,101
fritsch
Team-Kodi Developer
Posts: 23,468
Yeah :-). I wanted to "hint" that a bit more indirectly. But your summary matches, yes.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Posts: 4
Joined: Dec 2023
Reputation:
0
Any progress with this topic so far?
Posts: 4
Joined: Dec 2023
Reputation:
0
Following instructions found here, I have re-compiled my Kodi 20.2 with "gbm" and "gles" flags. In Gentoo that was not too tricky.
Started Kodi from the second console, and it worked. At that moment I realized I need to give my user 'input' permission.
When I started Kodi for the second time, I was able to use it.
HDR passthrough did not work immediately, but only after I instructed Kodi to change output framerate to match movie's FPS.
At that moment real HDR kicked.
So, we could call it success, but... Playback was very very choppy.
I have checked CPU usage, and it was less then 20%.
Anyways, good start for the first test.
Cheers!