Revert "drm/amd/display: no 3D and blnd LUT as DPP color caps for DCN401"
Subsystems (3)
PATCH 1/1 Revert "drm/amd/display: no 3D and blnd LUT as DPP color caps for DCN401"
This reverts commit 46e68dd5066c9831e9695c1756db017bb9c3762c since it breaks color enhancement in another OS, indicating these two fields are still used by color management in dcn401.
--- .../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
@@ -1938,8 +1938,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 =0 ; - dc->caps.color.dpp.ogam_ram =0 ; + dc->caps.color.dpp.hw_3d_lut =1 ; + dc->caps.color.dpp.ogam_ram =1 ;// 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.43.0
Quoted 15 lines · Alex Hung
This reverts commit
46e68dd5066c9831e9695c1756db017bb9c3762csince it breaks color enhancement in another OS, indicating these two fields are still used by color management in dcn401.Fixes 46e68dd5066c ("drm/amd/display: no 3D and blnd LUT as DPP color caps for DCN401")Signed-off-by Alex Hung <[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 +0
-0
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c static bool dcn401_resource_construct( · line 1945
Quoted 10 lines
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c +2
-2@@ -1938,8 +1938,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 =0 ; - dc->caps.color.dpp.ogam_ram =0 ; + dc->caps.color.dpp.hw_3d_lut =1 ; + dc->caps.color.dpp.ogam_ram =1 ;// 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 · 2 lines
Thanks & Regards, Aurabindo Pillai
There is a work-in-progress supplement patch. Let's wait and see whether it fixes the regressions without reverting 46e68dd5066c.
Quoted 25 lines · Alex Hung
This reverts commit
46e68dd5066c9831e9695c1756db017bb9c3762csince it breaks color enhancement in another OS, indicating these two fields are still used by color management in dcn401.Fixes 46e68dd5066c ("drm/amd/display: no 3D and blnd LUT as DPP color caps for DCN401")Signed-off-by Alex Hung <[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@@ -1938,8 +1938,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 =0 ; - dc->caps.color.dpp.ogam_ram =0 ; + dc->caps.color.dpp.hw_3d_lut =1 ; + dc->caps.color.dpp.ogam_ram =1 ;// 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 ;