drm/rockchip: vop2: Set post-csc input range limited when vp is yuv overlay
When dci is not enabled and vp is yuv overlay, the input
range of csc is limited.
Fixes: c08d820f80 ("drm/rockchip: vop2: Support post csc color range convert")
Change-Id: I53064bcbb46f8d2fda70eb71577e79ea32399690
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
This commit is contained in:
@@ -12896,6 +12896,8 @@ static void vop3_post_csc_config(struct drm_crtc *crtc, struct post_acm *acm, st
|
||||
|
||||
if (!vcstate->yuv_overlay || vp->has_dci_enabled_win)
|
||||
convert_mode.is_input_full_range = true;
|
||||
else if (vcstate->yuv_overlay)
|
||||
convert_mode.is_input_full_range = false;
|
||||
else if (has_yuv_plane)
|
||||
convert_mode.is_input_full_range =
|
||||
pstate->color_range == DRM_COLOR_YCBCR_FULL_RANGE ? 1 : 0;
|
||||
|
||||
Reference in New Issue
Block a user