@@ -780,6 +780,9 @@ drm_atomic_colorop_get_property(struct drm_colorop *colorop,
*val = state->size;
} else if (property == colorop->data_property) {
*val = (state->data) ? state->data->base.id : 0;
+ } else if (property == colorop->hw_caps_property) {
+ *val = state->hw_caps ?
+ state->hw_caps->base.id : 0;
} else {
return -EINVAL;
}
@@ -146,6 +146,11 @@ struct drm_colorop_state {
* Number of entries of the custom LUT. This should be read-only.
*/
uint32_t size;
+ /**
+ * @hw_caps:
+ *
+ */
+ struct drm_property_blob *hw_caps;
/**
* @lut_3d_modes:
@@ -297,6 +302,13 @@ struct drm_colorop {
*/
struct drm_property *curve_1d_type_property;
+ /**
+ * @hwlut_caps_property:
+ *
+ * Property to expose hardware lut capbilities.
+ */
+ struct drm_property *hw_caps_property;
+
/**
* @multiplier_property:
*