Skip to contentSkip to conversation

drm/amd/display: expose plane blend LUT in HW with MCM

PATCH In review Melissa Wen 3 participants 4 messages Dec 9, 2025 – Feb 4

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

PATCH 1/1 drm/amd/display: expose plane blend LUT in HW with MCM

Since commit 39923050615cd ("drm/amd/display: Clear DPP 3DLUT Cap") there is a flag in the mpc_color_caps that indicates the pre-blend usage of MPC color caps. Do the same as commit a0c3e8bfbab6 ("drm/amd/display:
Use mpc.preblend flag to indicate preblend") and use the mpc.preblend flag to expose plane blend LUT/TF properties on AMD display driver.

CC Matthew Schwartz <[email protected]>
---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c +1 -1
index 56cb866ac6f8..b15f0cf86008 100644
@@ -1649,7 +1649,7 @@ dm_atomic_plane_attach_color_mgmt_properties(struct amdgpu_display_manager *dm,
 					   MAX_COLOR_3DLUT_SIZE);
 	}
 
-	if (dpp_color_caps.ogam_ram) {
+	if (dpp_color_caps.ogam_ram || dm->dc->caps.color.mpc.preblend) {
 		drm_object_attach_property(&plane->base,
 					   mode_info.plane_blend_lut_property, 0);
 		drm_object_attach_property(&plane->base,
Signature · 1 line
2.51.0
#1 lore raw
Quoted 5 lines · Melissa Wen

Since commit 39923050615cd ("drm/amd/display: Clear DPP 3DLUT Cap") there is a flag in the mpc_color_caps that indicates the pre-blend usage of MPC color caps. Do the same as commit a0c3e8bfbab6 ("drm/amd/display:
Use mpc.preblend flag to indicate preblend") and use the mpc.preblend flag to expose plane blend LUT/TF properties on AMD display driver.

A gentle ping here.

Melissa

Quoted 20 lines
CC Matthew Schwartz <[email protected]>
---
  drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c +1 -1
index 56cb866ac6f8..b15f0cf86008 100644
@@ -1649,7 +1649,7 @@ dm_atomic_plane_attach_color_mgmt_properties(struct amdgpu_display_manager *dm,
  					   MAX_COLOR_3DLUT_SIZE);
  	}
 
-	if (dpp_color_caps.ogam_ram) {
+	if (dpp_color_caps.ogam_ram || dm->dc->caps.color.mpc.preblend) {
  		drm_object_attach_property(&plane->base,
  					   mode_info.plane_blend_lut_property, 0);
  		drm_object_attach_property(&plane->base,
#2 lore raw
Quoted 8 lines · Melissa Wen
Quoted 5 lines · Melissa Wen

Since commit 39923050615cd ("drm/amd/display: Clear DPP 3DLUT Cap") there is a flag in the mpc_color_caps that indicates the pre-blend usage of MPC color caps. Do the same as commit a0c3e8bfbab6 ("drm/amd/display:
Use mpc.preblend flag to indicate preblend") and use the mpc.preblend flag to expose plane blend LUT/TF properties on AMD display driver.

Quoted 6 lines

A gentle ping here.

Melissa

Quoted 2 lines
CC Matthew Schwartz <[email protected]>

I can confirm this adds back color management capabilities in gamescope on DCN35 and DCN351.

Quoted 18 lines
Quoted 17 lines

---
  drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c | 2 +-

  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c +1 -0
index 56cb866ac6f8..b15f0cf86008 100644
@@ -1649,7 +1649,7 @@ dm_atomic_plane_attach_color_mgmt_properties(struct amdgpu_display_manager *dm,
                          MAX_COLOR_3DLUT_SIZE);
       }
   -    if (dpp_color_caps.ogam_ram) {
+    if (dpp_color_caps.ogam_ram || dm->dc->caps.color.mpc.preblend) {
           drm_object_attach_property(&plane->base,
                          mode_info.plane_blend_lut_property, 0);
           drm_object_attach_property(&plane->base,
Reviewed-by on v1 1/1
#3 lore raw
In reply to Melissa Wen
Quoted 25 lines · Melissa Wen

Since commit 39923050615cd ("drm/amd/display: Clear DPP 3DLUT Cap") there is a flag in the mpc_color_caps that indicates the pre-blend usage of MPC color caps. Do the same as commit a0c3e8bfbab6 ("drm/amd/display:
Use mpc.preblend flag to indicate preblend") and use the mpc.preblend flag to expose plane blend LUT/TF properties on AMD display driver.

CC Matthew Schwartz <[email protected]>
---
  drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c +1 -1
index 56cb866ac6f8..b15f0cf86008 100644
@@ -1649,7 +1649,7 @@ dm_atomic_plane_attach_color_mgmt_properties(struct amdgpu_display_manager *dm,
  					   MAX_COLOR_3DLUT_SIZE);
  	}
 
-	if (dpp_color_caps.ogam_ram) {
+	if (dpp_color_caps.ogam_ram || dm->dc->caps.color.mpc.preblend) {
  		drm_object_attach_property(&plane->base,
  					   mode_info.plane_blend_lut_property, 0);
  		drm_object_attach_property(&plane->base,