lkml.org 
[lkml]   [2023]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RFC PATCH v2 14/18] drm/amd/display: expand array of supported 3D LUT modes
Date
AMD MPC block support 3D LUTs of dimensions 17 and 9, and also bit
depth 12 and 10, therefore, advertise them to the userspace.

Signed-off-by: Melissa Wen <mwen@igalia.com>
---
.../amd/display/modules/color/color_gamma.h | 31 +++++++++++++++++++
1 file changed, 31 insertions(+)

diff --git a/drivers/gpu/drm/amd/display/modules/color/color_gamma.h b/drivers/gpu/drm/amd/display/modules/color/color_gamma.h
index 8e159b1eb9c6..69b9a1aa6dd4 100644
--- a/drivers/gpu/drm/amd/display/modules/color/color_gamma.h
+++ b/drivers/gpu/drm/amd/display/modules/color/color_gamma.h
@@ -47,6 +47,37 @@ static const struct drm_mode_lut3d_mode lut3d_mode_17_12bit = {
.flags = 0,
};

+static const struct drm_mode_lut3d_mode amdgpu_lut3d_modes[] = {
+ {
+ .lut_size = 17,
+ .lut_stride = {17, 17, 18},
+ .bit_depth = 12,
+ .color_format = DRM_FORMAT_XRGB16161616,
+ .flags = 0,
+ },
+ {
+ .lut_size = 17,
+ .lut_stride = {17, 17, 18},
+ .bit_depth = 10,
+ .color_format = DRM_FORMAT_XRGB16161616,
+ .flags = 0,
+ },
+ {
+ .lut_size = 9,
+ .lut_stride = {9, 9, 10},
+ .bit_depth = 12,
+ .color_format = DRM_FORMAT_XRGB16161616,
+ .flags = 0,
+ },
+ {
+ .lut_size = 9,
+ .lut_stride = {9, 9, 10},
+ .bit_depth = 10,
+ .color_format = DRM_FORMAT_XRGB16161616,
+ .flags = 0,
+ },
+};
+
/* For SetRegamma ADL interface support
* Must match escape type
*/
--
2.35.1
\
 
 \ /
  Last update: 2023-03-26 23:33    [W:0.147 / U:0.604 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site