From b85f0cbff9b6fb4fb87914be8a77bd6ac8c0ac40 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Tue, 11 Jun 2019 13:42:05 +1200 Subject: Remove WLR_DRM_NO_ATOMIC_GAMMA workaround This is fixed on amdgpu, so we don't need this anymore. --- backend/drm/atomic.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'backend') diff --git a/backend/drm/atomic.c b/backend/drm/atomic.c index 8ce1e1e6..ad5ee6e2 100644 --- a/backend/drm/atomic.c +++ b/backend/drm/atomic.c @@ -211,11 +211,7 @@ static bool atomic_crtc_set_gamma(struct wlr_drm_backend *drm, uint16_t *r, uint16_t *g, uint16_t *b) { // Fallback to legacy gamma interface when gamma properties are not available // (can happen on older Intel GPUs that support gamma but not degamma). - // TEMP: This is broken on AMDGPU. Provide a fallback to legacy until they - // get it fixed. Ref https://bugs.freedesktop.org/show_bug.cgi?id=107459 - const char *no_atomic_str = getenv("WLR_DRM_NO_ATOMIC_GAMMA"); - bool no_atomic = no_atomic_str != NULL && strcmp(no_atomic_str, "1") == 0; - if (crtc->props.gamma_lut == 0 || no_atomic) { + if (crtc->props.gamma_lut == 0) { return legacy_iface.crtc_set_gamma(drm, crtc, size, r, g, b); } -- cgit v1.2.3