@@ -802,6 +802,10 @@ static void drm_atomic_colorop_print_state(struct drm_printer *p,
drm_printf(p, "\tinterpolation=%s\n", drm_get_colorop_lut1d_interpolation_name(colorop->lut1d_interpolation));
drm_printf(p, "\tdata blob id=%d\n", state->data ? state->data->base.id : 0);
break;
+ case DRM_COLOROP_1D_LUT_MULTSEG:
+ drm_printf(p, "\thw cap blob id=%d\n", state->hw_caps ? state->hw_caps->base.id : 0);
+ drm_printf(p, "\tdata blob id=%d\n", state->data ? state->data->base.id : 0);
+ break;
case DRM_COLOROP_CTM_3X3:
drm_printf(p, "\tdata blob id=%d\n", state->data ? state->data->base.id : 0);
break;
@@ -720,6 +720,9 @@ static int drm_atomic_color_set_data_property(struct drm_colorop *colorop,
size = modes[index].lut_stride[0] * modes[index].lut_stride[1] * modes[index].lut_stride[2] *
sizeof(struct drm_color_lut);
break;
+ case DRM_COLOROP_1D_LUT_MULTSEG:
+ elem_size = sizeof(struct drm_color_lut_32);
+ break;
default:
/* should never get here */
return -EINVAL;
@@ -923,6 +923,14 @@ enum drm_colorop_type {
*/
DRM_COLOROP_CTM_3X4,
+ /**
+ * @DRM_COLOROP_1D_LUT_MULTSEG:
+ *
+ * A 3x4 matrix. Its values are specified via the
+ * &drm_color_ctm_3x4 struct provided via the DATA property.
+ */
+ DRM_COLOROP_1D_LUT_MULTSEG,
+
/**
* @DRM_COLOROP_CTM_3X3:
*