@@ -771,6 +771,9 @@ drm_atomic_colorop_get_property(struct drm_colorop *colorop,
*val = colorop->lut3d_interpolation;
} 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;
}
@@ -141,6 +141,16 @@ struct drm_colorop_state {
*/
uint64_t multiplier;
+ /**
+ * @hw_caps:
+ *
+ * This blob will be of type struct drm_color_lut_range which contains the
+ * hardware capabilities of 1D LUT. These include number of LUT segments,
+ * number of LUT samples per segment, start and end point of respective
+ * segments and the precision of the LUT sample along with the normalization factor
+ */
+ struct drm_property_blob *hw_caps;
+
/**
* @data:
*
@@ -309,6 +319,13 @@ struct drm_colorop {
*/
struct drm_property *curve_1d_type_property;
+ /**
+ * @hw_caps_property:
+ *
+ * Property to expose hardware lut capabilities.
+ */
+ struct drm_property *hw_caps_property;
+
/**
* @multiplier_property:
*