diff options
author | Kenny Levinsen <kl@kl.wtf> | 2020-11-19 21:34:00 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-11-19 22:46:25 +0100 |
commit | fb3bea80144ea25fb21de8a3eeb0c9249f4cbfd6 (patch) | |
tree | 78f37a043c1a34baa3e43741a5e76b2181f2836d /backend | |
parent | 6284af121fd1427eaefb043ea03363c969f2df3f (diff) |
backend/drm: Use legacy gamma size for legacy backend
We would always return the GAMMA_LUT_SIZE property if available, and
only fall back to legacy gamma size otherwise. This leads to issues if
both are available in differs in size while we use the legacy backend.
Ensure that we only return the legacy size if we're using the legacy
backend.
Closes: https://github.com/swaywm/wlroots/issues/2429
Diffstat (limited to 'backend')
-rw-r--r-- | backend/drm/drm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index dd3e9c71..f797dd5a 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -609,7 +609,7 @@ static void drm_connector_rollback_render(struct wlr_output *output) { size_t drm_crtc_get_gamma_lut_size(struct wlr_drm_backend *drm, struct wlr_drm_crtc *crtc) { - if (crtc->props.gamma_lut_size == 0) { + if (crtc->props.gamma_lut_size == 0 || drm->iface == &legacy_iface) { return (size_t)crtc->legacy_crtc->gamma_size; } |