drm/amd/display: expose plane blend LUT in HW with MCM
Subsystems (3)
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.
--- 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
@@ -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
Quoted 5 lines · Melissa Wen
Since commit
39923050615cd("drm/amd/display: Clear DPP 3DLUT Cap") there is a flag in thempc_color_capsthat indicates the pre-blend usage of MPC color caps. Do the same as commita0c3e8bfbab6("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]>Signed-off-by Melissa Wen <[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@@ -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,
Matthew Schwartz
Tested-byQuoted 8 lines · Melissa Wen
Quoted 5 lines · Melissa Wen
Since commit
39923050615cd("drm/amd/display: Clear DPP 3DLUT Cap") there is a flag in thempc_color_capsthat indicates the pre-blend usage of MPC color caps. Do the same as commita0c3e8bfbab6("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
Signed-off-by Melissa Wen <[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
-0@@ -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,
Quoted 25 lines · Melissa Wen
Since commit
39923050615cd("drm/amd/display: Clear DPP 3DLUT Cap") there is a flag in thempc_color_capsthat indicates the pre-blend usage of MPC color caps. Do the same as commita0c3e8bfbab6("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]>Signed-off-by Melissa Wen <[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@@ -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,