aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0377-drm-amd-display-Define-dithering-options.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0377-drm-amd-display-Define-dithering-options.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0377-drm-amd-display-Define-dithering-options.patch77
1 files changed, 77 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0377-drm-amd-display-Define-dithering-options.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0377-drm-amd-display-Define-dithering-options.patch
new file mode 100644
index 00000000..2daaa4af
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0377-drm-amd-display-Define-dithering-options.patch
@@ -0,0 +1,77 @@
+From 13f8f2dfd88b92b82506a9b8b266393bb5945acf Mon Sep 17 00:00:00 2001
+From: Ding Wang <Ding.Wang@amd.com>
+Date: Wed, 12 Apr 2017 15:29:13 -0400
+Subject: [PATCH 0377/4131] drm/amd/display: Define dithering options
+
+Signed-off-by: Ding Wang <Ding.Wang@amd.com>
+Acked-by: Harry Wentland <Harry.Wentland@amd.com>
+Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/dc.h | 2 +-
+ drivers/gpu/drm/amd/display/dc/dc_hw_types.h | 29 ++++++++++++++++++++++++++++
+ 2 files changed, 30 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h
+index 647c095..dd8902d 100644
+--- a/drivers/gpu/drm/amd/display/dc/dc.h
++++ b/drivers/gpu/drm/amd/display/dc/dc.h
+@@ -430,6 +430,7 @@ struct dc_stream {
+ enum signal_type output_signal;
+
+ enum dc_color_space output_color_space;
++ enum dc_dither_option dither_option;
+
+ struct rect src; /* composition area */
+ struct rect dst; /* stream addressable area */
+@@ -444,7 +445,6 @@ struct dc_stream {
+ struct colorspace_transform gamut_remap_matrix;
+ struct csc_transform csc_color_matrix;
+
+- /* TODO: dithering */
+ /* TODO: custom INFO packets */
+ /* TODO: ABM info (DMCU) */
+ /* TODO: PSR info */
+diff --git a/drivers/gpu/drm/amd/display/dc/dc_hw_types.h b/drivers/gpu/drm/amd/display/dc/dc_hw_types.h
+index 64d43db..1a7ce06 100644
+--- a/drivers/gpu/drm/amd/display/dc/dc_hw_types.h
++++ b/drivers/gpu/drm/amd/display/dc/dc_hw_types.h
+@@ -484,6 +484,35 @@ enum dc_color_space {
+ COLOR_SPACE_ADOBERGB,
+ };
+
++enum dc_dither_option {
++ DITHER_OPTION_DEFAULT,
++ DITHER_OPTION_DISABLE,
++ DITHER_OPTION_FM6,
++ DITHER_OPTION_FM8,
++ DITHER_OPTION_FM10,
++ DITHER_OPTION_SPATIAL6_FRAME_RANDOM,
++ DITHER_OPTION_SPATIAL8_FRAME_RANDOM,
++ DITHER_OPTION_SPATIAL10_FRAME_RANDOM,
++ DITHER_OPTION_SPATIAL6,
++ DITHER_OPTION_SPATIAL8,
++ DITHER_OPTION_SPATIAL10,
++ DITHER_OPTION_TRUN6,
++ DITHER_OPTION_TRUN8,
++ DITHER_OPTION_TRUN10,
++ DITHER_OPTION_TRUN10_SPATIAL8,
++ DITHER_OPTION_TRUN10_SPATIAL6,
++ DITHER_OPTION_TRUN10_FM8,
++ DITHER_OPTION_TRUN10_FM6,
++ DITHER_OPTION_TRUN10_SPATIAL8_FM6,
++ DITHER_OPTION_SPATIAL10_FM8,
++ DITHER_OPTION_SPATIAL10_FM6,
++ DITHER_OPTION_TRUN8_SPATIAL6,
++ DITHER_OPTION_TRUN8_FM6,
++ DITHER_OPTION_SPATIAL8_FM6,
++ DITHER_OPTION_MAX = DITHER_OPTION_SPATIAL8_FM6,
++ DITHER_OPTION_INVALID
++};
++
+ enum dc_quantization_range {
+ QUANTIZATION_RANGE_UNKNOWN,
+ QUANTIZATION_RANGE_FULL,
+--
+2.7.4
+