From: Amy Zhang <Amy.Zhang@xxxxxxx> - Add BT2020 color space in the set output csc default Change-Id: I50a4aa392b0bfb403b9e633c083ae230485b2f35 Signed-off-by: Amy Zhang <Amy.Zhang at amd.com> Reviewed-by: Tony Cheng <Tony.Cheng at amd.com> Acked-by: Harry Wentland <Harry.Wentland at amd.com> --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_opp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_opp.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_opp.c index fce08e5235e6..148e192f5f76 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_opp.c +++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_opp.c @@ -338,9 +338,11 @@ static void opp_set_output_csc_default( if (default_adjust != NULL) { switch (default_adjust->out_color_space) { case COLOR_SPACE_SRGB: + case COLOR_SPACE_2020_RGB_FULLRANGE: ocsc_mode = 0; break; case COLOR_SPACE_SRGB_LIMITED: + case COLOR_SPACE_2020_RGB_LIMITEDRANGE: ocsc_mode = 1; break; case COLOR_SPACE_YCBCR601: @@ -349,6 +351,7 @@ static void opp_set_output_csc_default( break; case COLOR_SPACE_YCBCR709: case COLOR_SPACE_YCBCR709_LIMITED: + case COLOR_SPACE_2020_YCBCR: ocsc_mode = 3; break; case COLOR_SPACE_UNKNOWN: -- 2.11.0