From eb78b6251594f2f21b8b897f181a597d36a0dc14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Thu, 16 Jul 2020 22:19:52 +0200 Subject: [PATCH] kms/crtc: Find GAMMA_LUT property To be used by the atomic backend to implement setting gamma ramps. Part-of: --- src/backends/native/meta-kms-crtc-private.h | 1 + src/backends/native/meta-kms-crtc.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/backends/native/meta-kms-crtc-private.h b/src/backends/native/meta-kms-crtc-private.h index bbf014bf5..5429989bf 100644 --- a/src/backends/native/meta-kms-crtc-private.h +++ b/src/backends/native/meta-kms-crtc-private.h @@ -28,6 +28,7 @@ typedef enum _MetaKmsCrtcProp { META_KMS_CRTC_PROP_MODE_ID = 0, META_KMS_CRTC_PROP_ACTIVE, + META_KMS_CRTC_PROP_GAMMA_LUT, META_KMS_CRTC_N_PROPS } MetaKmsCrtcProp; diff --git a/src/backends/native/meta-kms-crtc.c b/src/backends/native/meta-kms-crtc.c index 7de317378..38fb06fab 100644 --- a/src/backends/native/meta-kms-crtc.c +++ b/src/backends/native/meta-kms-crtc.c @@ -245,6 +245,11 @@ init_proporties (MetaKmsCrtc *crtc, .name = "ACTIVE", .type = DRM_MODE_PROP_RANGE, }, + [META_KMS_CRTC_PROP_GAMMA_LUT] = + { + .name = "GAMMA_LUT", + .type = DRM_MODE_PROP_BLOB, + }, } };