drm/amd/display: no 3D and blnd LUT as DPP color caps for DCN401
Subsystems (3)
PATCH 1/1 drm/amd/display: no 3D and blnd LUT as DPP color caps for DCN401
Match what is declared as DPP color caps with hw caps. DCN401 has MPC shaper+3D+blnd LUTs that are movable before and after blending (get from plane or stream), but no DPP shaper+3D+blend LUTs.
--- .../gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c +2 -2
@@ -1937,8 +1937,8 @@ static bool dcn401_resource_construct( dc->caps.color.dpp.gamma_corr =1 ; dc->caps.color.dpp.dgam_rom_for_yuv =0 ; - dc->caps.color.dpp.hw_3d_lut =1 ; - dc->caps.color.dpp.ogam_ram =1 ; + dc->caps.color.dpp.hw_3d_lut =0 ; + dc->caps.color.dpp.ogam_ram =0 ;// no OGAM ROM on DCN2 and later ASICs dc->caps.color.dpp.ogam_rom_caps.srgb =0 ; dc->caps.color.dpp.ogam_rom_caps.bt2020 =0 ;
Signature · 1 line
2.47.2
Quoted 3 lines · Melissa Wen
Match what is declared as DPP color caps with hw caps. DCN401 has MPC shaper+3D+blnd LUTs that are movable before and after blending (get from plane or stream), but no DPP shaper+3D+blend LUTs.
Correction: shaper+3D LUTs movable, and no DPP blend LUT.
Quoted 21 lines
Signed-off-by Melissa Wen <[email protected]>--- .../gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c +2
-2@@ -1937,8 +1937,8 @@ static bool dcn401_resource_construct( dc->caps.color.dpp.gamma_corr =1 ; dc->caps.color.dpp.dgam_rom_for_yuv =0 ; - dc->caps.color.dpp.hw_3d_lut =1 ; - dc->caps.color.dpp.ogam_ram =1 ; + dc->caps.color.dpp.hw_3d_lut =0 ; + dc->caps.color.dpp.ogam_ram =0 ;// no OGAM ROM on DCN2 and later ASICs dc->caps.color.dpp.ogam_rom_caps.srgb =0 ; dc->caps.color.dpp.ogam_rom_caps.bt2020 =0 ;
Alex Hung
Reviewed-byQuoted 28 lines · Melissa Wen
Quoted 3 lines · Melissa Wen
Match what is declared as DPP color caps with hw caps. DCN401 has MPC shaper+3D+blnd LUTs that are movable before and after blending (get from plane or stream), but no DPP shaper+3D+blend LUTs.
Correction: shaper+3D LUTs movable, and no DPP blend LUT.
Quoted 20 lines
Signed-off-by Melissa Wen <[email protected]>---
.../gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c | 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c +2
-2@@ -1937,8 +1937,8 @@ static bool dcn401_resource_construct( dc->caps.color.dpp.gamma_corr = 1; dc->caps.color.dpp.dgam_rom_for_yuv = 0; - dc->caps.color.dpp.hw_3d_lut = 1; - dc->caps.color.dpp.ogam_ram = 1; + dc->caps.color.dpp.hw_3d_lut = 0; + dc->caps.color.dpp.ogam_ram = 0; // no OGAM ROM on DCN2 and later ASICs dc->caps.color.dpp.ogam_rom_caps.srgb = 0; dc->caps.color.dpp.ogam_rom_caps.bt2020 = 0;