backend/drm: GAMMA_LUT_SIZE isn't atomic

GAMMA_LUT_SIZE isn't an atomic property. It can be used with the legacy
interface too. So we can unify both codepaths and remove
wlr_drm_interface.crtc_get_gamma_size.

It's no guaranteed to exist though, so we still need to keep the
fallback.
This commit is contained in:
Simon Ser 2020-05-09 16:50:50 +02:00
parent da63d11d34
commit 06d5aa5780
5 changed files with 17 additions and 31 deletions

View file

@ -117,12 +117,6 @@ bool drm_legacy_crtc_set_gamma(struct wlr_drm_backend *drm,
return true;
}
static size_t legacy_crtc_get_gamma_size(struct wlr_drm_backend *drm,
struct wlr_drm_crtc *crtc) {
return (size_t)crtc->legacy_crtc->gamma_size;
}
const struct wlr_drm_interface legacy_iface = {
.crtc_commit = legacy_crtc_commit,
.crtc_get_gamma_size = legacy_crtc_get_gamma_size,
};