Skip to contentSkip to conversation

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

PATCH In review Melissa Wen 2 participants 3 messages Apr 25, 2025 – May 20, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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
index 5b7148bb1701..3b142e662c7b 100644
@@ -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
#1 lore raw
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
---
  .../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 5b7148bb1701..3b142e662c7b 100644
@@ -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;
Reviewed-by
#2 lore raw
Quoted 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

---
  .../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 5b7148bb1701..3b142e662c7b 100644
@@ -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;