drm/rockchip: vop2: init yuv overlay mode

post bcsh csc module need to know win overlay at yuv or rgb domain.

Change-Id: I246c22ddf0d02f48f515947a48ef058dca36c7a5
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
This commit is contained in:
Sandy Huang
2020-12-03 18:09:24 +08:00
committed by Tao Huang
parent 89a672b2a9
commit b1c0c4e368

View File

@@ -3334,7 +3334,9 @@ static void vop2_crtc_atomic_begin(struct drm_crtc *crtc, struct drm_crtc_state
struct vop2_zpos *vop2_zpos;
struct vop2_cluster cluster;
uint8_t nr_wins = 0;
struct rockchip_crtc_state *vcstate = to_rockchip_crtc_state(crtc->state);
vcstate->yuv_overlay = is_yuv_output(vcstate->bus_format);
vop2_zpos = kmalloc_array(vop2->data->win_size, sizeof(*vop2_zpos), GFP_KERNEL);
if (!vop2_zpos)
return;