Skip to contentSkip to conversation

Revert "drm/amd/display: no 3D and blnd LUT as DPP color caps for DCN401"

PATCH In review Alex Hung 2 participants 3 messages May 27, 2025 – May 28, 2025

Subsystems (3)
lore
Share & tools
lore

Alex Hung

author
#0 lore raw

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.

Fixes 46e68dd5066c ("drm/amd/display: no 3D and blnd LUT as DPP color caps for 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
index f420c4dafa03..e0e32975ca34 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 15 lines · Alex Hung

This reverts commit 46e68dd5066c9831e9695c1756db017bb9c3762c since 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")
---
  .../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
index f420c4dafa03..e0e32975ca34 100644

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
author
#2 lore raw
In reply to Alex Hung

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 46e68dd5066c9831e9695c1756db017bb9c3762c since 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")
---
  .../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
index f420c4dafa03..e0e32975ca34 100644
@@ -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;