• Melissa Wen's avatar
    drm/amd/display: add plane shaper LUT support · aba8b76b
    Melissa Wen authored
    Map DC shaper LUT to DM plane color management. Shaper LUT can be used
    to delinearize and/or normalize the color space for computational
    efficiency and achiving specific visual styles. If a plane degamma is
    apply to linearize the color space, a custom shaper 1D LUT can be used
    just before applying 3D LUT.
    
    v2:
    - use DPP color caps to verify plane 3D LUT support
    - add debug message if shaper LUT programming fails
    
    v4:
    - remove helper to check 3D LUT color caps (Harry)
    - update desc of lut3d-setup helper from MPC to DPP
    
    v5:
    - remove color_mgmt_changed check that prevents color updates (Joshua)
    Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
    Signed-off-by: default avatarMelissa Wen <mwen@igalia.com>
    Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    aba8b76b
amdgpu_dm.h 24.6 KB