You may want to make it an option, either during build live or in the PKGBUILD, to select using GL or GLES.
Using GBM, I believe HDR would only work with this instead of gl:
-DAPP_RENDER_SYSTEM=gles
I have already submitted this adjustment as a pull request to the official package as well. It doesn't seem to change any of the experience or functionality, however reading around it seems gles provides more to kodi now than gl, which is funny since gl is more "full fat." @graysky
Pinned Comments
graysky commented on 2022-06-11 11:49 (UTC)
@laichiaheng - kodi is bound to a specific version of ffmpeg which is generally older than Arch's package. We avoid incompatibilities by using that specific version (ie internal ffmpeg). Recommend that you build kodi in clean chroot. See: https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot
I wrote a script that automates much of that called clean-chroot-manager offered here in the AUR.