Add DRM_COLOROP_CSC to the colorop type enum and register it in the colorop_type_name table for proper type name lookups.
This new colorop type will be used for Color Space Conversion (CSC) operations, primarily for YUV to RGB conversion with configurable color encoding and range properties. Co-developed by Claude Sonnet 4.5. Signed-off-by: Harry Wentland <[email protected]> --- drivers/gpu/drm/drm_colorop.c | 2 ++ include/uapi/drm/drm_mode.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/gpu/drm/drm_colorop.c b/drivers/gpu/drm/drm_colorop.c index 647cf881f413..11b2f11db874 100644 --- a/drivers/gpu/drm/drm_colorop.c +++ b/drivers/gpu/drm/drm_colorop.c @@ -68,6 +68,7 @@ static const struct drm_prop_enum_list drm_colorop_type_enum_list[] = { { DRM_COLOROP_CTM_3X4, "3x4 Matrix"}, { DRM_COLOROP_MULTIPLIER, "Multiplier"}, { DRM_COLOROP_3D_LUT, "3D LUT"}, + { DRM_COLOROP_CSC, "CSC"}, }; static const char * const colorop_curve_1d_type_names[] = { @@ -563,6 +564,7 @@ static const char * const colorop_type_name[] = { [DRM_COLOROP_CTM_3X4] = "3x4 Matrix", [DRM_COLOROP_MULTIPLIER] = "Multiplier", [DRM_COLOROP_3D_LUT] = "3D LUT", + [DRM_COLOROP_CSC] = "CSC", }; static const char * const colorop_lu3d_interpolation_name[] = { diff --git a/include/uapi/drm/drm_mode.h b/include/uapi/drm/drm_mode.h index 3693d82b5279..80296dd437e6 100644 --- a/include/uapi/drm/drm_mode.h +++ b/include/uapi/drm/drm_mode.h @@ -968,6 +968,7 @@ enum drm_colorop_type { * color = lut3d[index] */ DRM_COLOROP_3D_LUT, + DRM_COLOROP_CSC, }; /** -- 2.53.0
