It's unclear to me why there's no color palette/correction table exposed in libdrm/KMS at the kernel. It should just be part of the video mode, maybe with a bit to indicate when the driver/hardware doesn't support changing it. But always be able to read it out, make it linear nonsense when the support isn't there - that won't be worse than what we have now. Then the layers up the stack like Wayland/X/GNOME/KDE are ju…
Have you created it, cause if not then that might explain why what you want in detail doesn't exist.
Or is your point that it's substantially more complicated than it appears, and I'd know that if I tried doing it myself?