Skip to content

Commit 36d47d4

Browse files
Algea Caorkhuangtao
authored andcommitted
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: c08d820 ("drm/rockchip: vop2: Support post csc color range convert") Change-Id: I53064bcbb46f8d2fda70eb71577e79ea32399690 Signed-off-by: Algea Cao <[email protected]>
1 parent 085dfd9 commit 36d47d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpu/drm/rockchip/rockchip_drm_vop2.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12896,6 +12896,8 @@ static void vop3_post_csc_config(struct drm_crtc *crtc, struct post_acm *acm, st
1289612896

1289712897
if (!vcstate->yuv_overlay || vp->has_dci_enabled_win)
1289812898
convert_mode.is_input_full_range = true;
12899+
else if (vcstate->yuv_overlay)
12900+
convert_mode.is_input_full_range = false;
1289912901
else if (has_yuv_plane)
1290012902
convert_mode.is_input_full_range =
1290112903
pstate->color_range == DRM_COLOR_YCBCR_FULL_RANGE ? 1 : 0;

0 commit comments

Comments
 (0)