mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
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.
This commit is contained in:
parent
939a4ea60f
commit
633663cdde
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue