mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
drm/amd/display: expose plane blend LUT in HW with MCM
Since commit3992305061("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 commit9e5d4a5e27("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>
This commit is contained in:
committed by
Alex Deucher
parent
39fc2bc4da
commit
ff205dc95a
@@ -1650,7 +1650,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,
|
||||
|
||||
Reference in New Issue
Block a user