diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-08-29 16:33:44 -0400 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-08-29 23:05:38 +0200 |
commit | 633663cddefea5d66e2116573f39ec9aab9e12ab (patch) | |
tree | 7dfa764f16ba51688ad5b835632c4bc90d7f32b7 | |
parent | 939a4ea60fba4a8fb8badff2db397e13869ba608 (diff) |
Use legacy modesetting for gamma control
It doesn't look like there's any motion on a fix from the AMDGPU side,
and using the legacy interface for this isn't so bad.
-rw-r--r-- | backend/drm/atomic.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/backend/drm/atomic.c b/backend/drm/atomic.c index 40a272a1..335c9de1 100644 --- a/backend/drm/atomic.c +++ b/backend/drm/atomic.c @@ -201,7 +201,9 @@ static bool atomic_crtc_set_gamma(struct wlr_drm_backend *drm, uint32_t size) { // Fallback to legacy gamma interface when gamma properties are not available // (can happen on older intel gpu's that support gamma but not degamma) - if (crtc->props.gamma_lut == 0) { + // TEMP: This is broken on AMDGPU. Always fallback to legacy until they get + // it fixed. Ref https://bugs.freedesktop.org/show_bug.cgi?id=107459 + if (crtc->props.gamma_lut == 0 || true) { return legacy_iface.crtc_set_gamma(drm, crtc, r, g, b, size); } |