On 02.12.26 17:48, Harry Wentland wrote:
On 2026-12-02 05:29, Robert Mader wrote:
Hi Harry,
On 30.11.26 22:16, Harry Wentland wrote:
Dave, Simona, any objections to merging this via amd-staging-drm-next?
one minor concern: I hope to still submit the VKMS implementation for
gamma 2.4. So I'd need the commit here if possible.
Any objection to merging this via both drm-misc-next and
amd-staging-drm-next then? Or should it go to any other tree as well?
That'd be perfect for me - and I have no further tree in mind (I guess
Intel would be the main candidate).
Thus back to Dave and Simona :)
Thanks,
Robert
Harry
Regards,
Robert
If not, could I get an ACK?
Thanks,
Harry
On 11/19/26 14:51, Harry Wentland wrote:
Add new 1D curve colorop types for the Gamma 2.4 and Gamma 2.6 power
functions and their inverses.
Signed-off-by: Harry Wentland <[email protected]>
---
drivers/gpu/drm/drm_colorop.c | 4 ++++
include/drm/drm_colorop.h | 39
+++++++++++++++++++++++++++++++++++
2 files changed, 43 insertions(+)
diff --git a/drivers/gpu/drm/drm_colorop.c b/drivers/gpu/drm/
drm_colorop.c
index 682fcc651525..d62153fd9c71 100644
--- a/drivers/gpu/drm/drm_colorop.c
+++ b/drivers/gpu/drm/drm_colorop.c
@@ -79,6 +79,10 @@ static const char * const
colorop_curve_1d_type_names[] = {
[DRM_COLOROP_1D_CURVE_BT2020_OETF] = "BT.2020 OETF",
[DRM_COLOROP_1D_CURVE_GAMMA22] = "Gamma 2.2",
[DRM_COLOROP_1D_CURVE_GAMMA22_INV] = "Gamma 2.2 Inverse",
+ [DRM_COLOROP_1D_CURVE_GAMMA24] = "Gamma 2.4",
+ [DRM_COLOROP_1D_CURVE_GAMMA24_INV] = "Gamma 2.4 Inverse",
+ [DRM_COLOROP_1D_CURVE_GAMMA26] = "Gamma 2.6",
+ [DRM_COLOROP_1D_CURVE_GAMMA26_INV] = "Gamma 2.6 Inverse",
};
static const struct drm_prop_enum_list
drm_colorop_lut1d_interpolation_list[] = {
diff --git a/include/drm/drm_colorop.h b/include/drm/drm_colorop.h
index 224fae40ed2b..5c4c763da83e 100644
--- a/include/drm/drm_colorop.h
+++ b/include/drm/drm_colorop.h
@@ -126,6 +126,45 @@ enum drm_colorop_curve_1d_type {
* The inverse of &DRM_COLOROP_1D_CURVE_GAMMA22
*/
DRM_COLOROP_1D_CURVE_GAMMA22_INV,
+
+ /**
+ * @DRM_COLOROP_1D_CURVE_GAMMA24:
+ *
+ * enum string "Gamma 2.4"
+ *
+ * A gamma 2.4 power function. This applies a power curve with
+ * gamma value of 2.4 to the input values.
+ */
+ DRM_COLOROP_1D_CURVE_GAMMA24,
+
+ /**
+ * @DRM_COLOROP_1D_CURVE_GAMMA24_INV:
+ *
+ * enum string "Gamma 2.4 Inverse"
+ *
+ * The inverse of &DRM_COLOROP_1D_CURVE_GAMMA24
+ */
+ DRM_COLOROP_1D_CURVE_GAMMA24_INV,
+
+ /**
+ * @DRM_COLOROP_1D_CURVE_GAMMA26:
+ *
+ * enum string "Gamma 2.6"
+ *
+ * A gamma 2.6 power function. This applies a power curve with
+ * gamma value of 2.6 to the input values.
+ */
+ DRM_COLOROP_1D_CURVE_GAMMA26,
+
+ /**
+ * @DRM_COLOROP_1D_CURVE_GAMMA26_INV:
+ *
+ * enum string "Gamma 2.6 Inverse"
+ *
+ * The inverse of &DRM_COLOROP_1D_CURVE_GAMMA26
+ */
+ DRM_COLOROP_1D_CURVE_GAMMA26_INV,
+
/**
* @DRM_COLOROP_1D_CURVE_COUNT:
*