From: Roman Li Date: Mon, 13 Apr 2026 21:32:55 +0000 (-0400) Subject: drm/amd/display: bypass post csc for additional color spaces in dcn42 X-Git-Tag: v7.2-rc1~141^2~24^2~158 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=35e86e6a54e82e3624e9abdad61c8d4b0f764396;p=thirdparty%2Fkernel%2Flinux.git drm/amd/display: bypass post csc for additional color spaces in dcn42 [Why] This aligns dcn42 with: "drm/amd/display: bypass post csc for additional color spaces in dal" [How] Apply the same post csc bypass logic to dcn42 dpp using the helper function. Signed-off-by: Roman Li Acked-by: Chenyu Chen Reviewed-by: Alex Hung Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/dpp/dcn42/dcn42_dpp.c b/drivers/gpu/drm/amd/display/dc/dpp/dcn42/dcn42_dpp.c index c126fb9d5bfa9..b5d7ed5dd511c 100644 --- a/drivers/gpu/drm/amd/display/dc/dpp/dcn42/dcn42_dpp.c +++ b/drivers/gpu/drm/amd/display/dc/dpp/dcn42/dcn42_dpp.c @@ -269,10 +269,10 @@ static void dpp42_dpp_setup( tbl_entry.color_space = input_color_space; - if (color_space >= COLOR_SPACE_YCBCR601) - select = INPUT_CSC_SELECT_ICSC; - else + if (dpp3_should_bypass_post_csc_for_colorspace(color_space)) select = INPUT_CSC_SELECT_BYPASS; + else + select = INPUT_CSC_SELECT_ICSC; dpp3_program_post_csc(dpp_base, color_space, select, &tbl_entry);