aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0561-drm-amd-dal-Fail-validation-if-YCbCr-420-since-curre.patch
blob: be091be521cd40262102298000720b48191f0053 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From bbf673f918a152ebb3cfd541497908de2f631f91 Mon Sep 17 00:00:00 2001
From: Anthony Koo <Anthony.Koo@amd.com>
Date: Wed, 2 Dec 2015 13:55:16 -0500
Subject: [PATCH 0561/1110] drm/amd/dal: Fail validation if YCbCr 420 since
 current HW does not support it

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
---
 drivers/gpu/drm/amd/dal/dc/dce110/dce110_link_encoder.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/amd/dal/dc/dce110/dce110_link_encoder.c b/drivers/gpu/drm/amd/dal/dc/dce110/dce110_link_encoder.c
index cd1924a..3e2ac27 100644
--- a/drivers/gpu/drm/amd/dal/dc/dce110/dce110_link_encoder.c
+++ b/drivers/gpu/drm/amd/dal/dc/dce110/dce110_link_encoder.c
@@ -1038,6 +1038,10 @@ static bool validate_hdmi_output(
 			PIXEL_ENCODING_RGB)
 			return false;
 
+	/* DCE11 HW does not support 420 */
+	if (crtc_timing->pixel_encoding == PIXEL_ENCODING_YCBCR420)
+		return false;
+
 	return true;
 }
 
-- 
2.7.4