diff options
| author | Melissa Wen <mwen@igalia.com> | 2026-06-09 13:20:19 +0300 |
|---|---|---|
| committer | Melissa Wen <melissa.srw@gmail.com> | 2026-06-10 13:13:35 +0300 |
| commit | 94ff735296d371045fce163451a3d65e44ac4729 (patch) | |
| tree | 4d7280de41157b84aaf9fa34cc45102b5f29697c /include | |
| parent | e480228cf65583040c894bb9cc02e1d5b328cee0 (diff) | |
| download | linux-94ff735296d371045fce163451a3d65e44ac4729.tar.xz | |
drm/colorop: make lut(1/3)d_interpolation props correctly behave as mutable
As interpolation props are actually mutable props, any changes should be
handled by drm_colorop_state. Move their enum and make it correctly
behaves as mutable.
Fixes: 7fa3ee8c0a79 ("drm/colorop: Define LUT_1D interpolation")
Fixes: db971856bbe0 ("drm/colorop: Add 3D LUT support to color pipeline")
Reviewed-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
Reviewed-by: Alex Hung <alex.hung@amd.com>
Fixes: 9ba25915efba ("drm/amd/display: Add support for sRGB EOTF in DEGAM block")
Signed-off-by: Melissa Wen <mwen@igalia.com>
Signed-off-by: Melissa Wen <melissa.srw@gmail.com>
Link: https://patch.msgid.link/20260609110420.1298352-3-mwen@igalia.com
Diffstat (limited to 'include')
| -rw-r--r-- | include/drm/drm_colorop.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/include/drm/drm_colorop.h b/include/drm/drm_colorop.h index 61cc8206b4c4..d5b45339333f 100644 --- a/include/drm/drm_colorop.h +++ b/include/drm/drm_colorop.h @@ -183,6 +183,20 @@ struct drm_colorop_state { */ struct drm_property_blob *data; + /** + * @lut1d_interpolation: + * + * Interpolation for DRM_COLOROP_1D_LUT + */ + enum drm_colorop_lut1d_interpolation_type lut1d_interpolation; + + /** + * @lut3d_interpolation: + * + * Interpolation for DRM_COLOROP_3D_LUT + */ + enum drm_colorop_lut3d_interpolation_type lut3d_interpolation; + /** @state: backpointer to global drm_atomic_state */ struct drm_atomic_state *state; }; @@ -307,20 +321,6 @@ struct drm_colorop { uint32_t size; /** - * @lut1d_interpolation: - * - * Interpolation for DRM_COLOROP_1D_LUT - */ - enum drm_colorop_lut1d_interpolation_type lut1d_interpolation; - - /** - * @lut3d_interpolation: - * - * Interpolation for DRM_COLOROP_3D_LUT - */ - enum drm_colorop_lut3d_interpolation_type lut3d_interpolation; - - /** * @lut1d_interpolation_property: * * Property for DRM_COLOROP_1D_LUT interpolation |
