Skip to content

Commit ff205dc

Browse files
melissawenalexdeucher
authored andcommitted
drm/amd/display: expose plane blend LUT in HW with MCM
Since commit 3992305 ("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 9e5d4a5 ("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 <matthew.schwartz@linux.dev> Signed-off-by: Melissa Wen <mwen@igalia.com> Tested-by: Matthew Schwartz <matthew.schwartz@linux.dev> Reviewed-by: Alex Hung <alex.hung@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 39fc2bc commit ff205dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1650,7 +1650,7 @@ dm_atomic_plane_attach_color_mgmt_properties(struct amdgpu_display_manager *dm,
16501650
MAX_COLOR_3DLUT_SIZE);
16511651
}
16521652

1653-
if (dpp_color_caps.ogam_ram) {
1653+
if (dpp_color_caps.ogam_ram || dm->dc->caps.color.mpc.preblend) {
16541654
drm_object_attach_property(&plane->base,
16551655
mode_info.plane_blend_lut_property, 0);
16561656
drm_object_attach_property(&plane->base,

0 commit comments

Comments
 (0)