Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

backend/drm: add WLR_DRM_NO_ATOMIC_GAMMA env variable #1344

Merged
merged 1 commit into from
Oct 29, 2018

Conversation

emersion
Copy link
Member

This allows the legacy interface to be used instead of atomic if needed. This
is a workaround to make some Intel GPUs work (if this variable is unset) as
well as to make some AMD GPUs work (if this variable is set).

See swaywm/sway#2700

This allows the legacy interface to be used instead of atomic if needed. This
is a workaround to make some Intel GPUs work (if this variable is unset) as
well as to make some AMD GPUs work (if this variable is set).
// (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");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually looked at this and was wondering about doing a getenv everytime we set gamma.. It's not a fast path but it's the first getenv we'll have that's not at init.
Well, I guess it's probably ok

@emersion emersion merged commit 11dc1f6 into swaywm:master Oct 29, 2018
@emersion emersion deleted the no-atomic-gamma branch October 29, 2018 21:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants