kms/crtc: Find GAMMA_LUT property

To be used by the atomic backend to implement setting gamma ramps.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1488>
This commit is contained in:
Jonas Ådahl 2020-07-16 22:19:52 +02:00 committed by Marge Bot
parent 8808d518cc
commit eb78b62515
2 changed files with 6 additions and 0 deletions

View File

@ -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;

View File

@ -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,
},
}
};