backends/drm: fix legacy gamma support
See the individual commits for details. I still hope to completely get rid of legacy gamma to remove all such problems, but we need to have color management enabled for everyone first.
See the individual commits for details. I still hope to completely get rid of legacy gamma to remove all such problems, but we need to have color management enabled for everyone first.