aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/4219-drm-amd-display-add-missing-colorspace-for-set-black.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/4219-drm-amd-display-add-missing-colorspace-for-set-black.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/4219-drm-amd-display-add-missing-colorspace-for-set-black.patch55
1 files changed, 55 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/4219-drm-amd-display-add-missing-colorspace-for-set-black.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/4219-drm-amd-display-add-missing-colorspace-for-set-black.patch
new file mode 100644
index 00000000..56414817
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/4219-drm-amd-display-add-missing-colorspace-for-set-black.patch
@@ -0,0 +1,55 @@
+From 26f556956aacc7dd898ff8c8a573e2b303a36089 Mon Sep 17 00:00:00 2001
+From: Yue Hin Lau <Yuehin.Lau@amd.com>
+Date: Mon, 9 Apr 2018 14:46:32 -0400
+Subject: [PATCH 4219/5725] drm/amd/display: add missing colorspace for set
+ black color
+
+Signed-off-by: Yue Hin Lau <Yuehin.Lau@amd.com>
+Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
+Acked-by: Harry Wentland <harry.wentland@amd.com>
+---
+ .../gpu/drm/amd/display/dc/core/dc_hw_sequencer.c | 21 ++++++++++++++++++++-
+ 1 file changed, 20 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
+index 481f692..83d1215 100644
+--- a/drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
++++ b/drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
+@@ -208,6 +208,7 @@ void color_space_to_black_color(
+ case COLOR_SPACE_YCBCR709:
+ case COLOR_SPACE_YCBCR601_LIMITED:
+ case COLOR_SPACE_YCBCR709_LIMITED:
++ case COLOR_SPACE_2020_YCBCR:
+ *black_color = black_color_format[BLACK_COLOR_FORMAT_YUV_CV];
+ break;
+
+@@ -216,7 +217,25 @@ void color_space_to_black_color(
+ black_color_format[BLACK_COLOR_FORMAT_RGB_LIMITED];
+ break;
+
+- default:
++ /**
++ * Remove default and add case for all color space
++ * so when we forget to add new color space
++ * compiler will give a warning
++ */
++ case COLOR_SPACE_UNKNOWN:
++ case COLOR_SPACE_SRGB:
++ case COLOR_SPACE_XR_RGB:
++ case COLOR_SPACE_MSREF_SCRGB:
++ case COLOR_SPACE_XV_YCC_709:
++ case COLOR_SPACE_XV_YCC_601:
++ case COLOR_SPACE_2020_RGB_FULLRANGE:
++ case COLOR_SPACE_2020_RGB_LIMITEDRANGE:
++ case COLOR_SPACE_ADOBERGB:
++ case COLOR_SPACE_DCIP3:
++ case COLOR_SPACE_DISPLAYNATIVE:
++ case COLOR_SPACE_DOLBYVISION:
++ case COLOR_SPACE_APPCTRL:
++ case COLOR_SPACE_CUSTOMPOINTS:
+ /* fefault is sRGB black (full range). */
+ *black_color =
+ black_color_format[BLACK_COLOR_FORMAT_RGB_FULLRANGE];
+--
+2.7.4
+