summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Ã…dahl <jadahl@gmail.com>2020-09-07 16:13:43 +0200
committerBenjamin Berg <bberg@redhat.com>2020-09-07 16:20:26 +0200
commit87055dc274a1ac04bfa9802ea8e60a8813f44a1a (patch)
tree0ac82136c9c622d1b4c48a017c2a79a71837495a
parentca9a280b577d585905644f00ab4bf808d279f341 (diff)
downloadmutter-87055dc274a1ac04bfa9802ea8e60a8813f44a1a.tar.gz
kms/crtc: Read initial gamma state
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1420
-rw-r--r--src/backends/native/meta-kms-crtc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backends/native/meta-kms-crtc.c b/src/backends/native/meta-kms-crtc.c
index 6cf752494..f5547567b 100644
--- a/src/backends/native/meta-kms-crtc.c
+++ b/src/backends/native/meta-kms-crtc.c
@@ -255,6 +255,8 @@ meta_kms_crtc_new (MetaKmsImplDevice *impl_device,
crtc->id = drm_crtc->crtc_id;
crtc->idx = idx;
+ meta_kms_crtc_read_state (crtc, impl_device, drm_crtc);
+
return crtc;
}