drm/rockchip: vop: fixup color space table
authorMark Yao <mark.yao@rock-chips.com>
Fri, 3 Mar 2017 00:46:17 +0000 (08:46 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 7 Mar 2017 01:59:01 +0000 (09:59 +0800)
Change-Id: Ia3c14602ffe837efd2fb4dcf8d3dd2c0960cfce6
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
drivers/gpu/drm/rockchip/rockchip_vop_reg.c

index ae53285ba855b80a40b17ac17410b84c105cca2e..886534175f5f314ab2174b6e583ea8d3ed4999be 100644 (file)
@@ -1124,7 +1124,7 @@ static void vop_plane_atomic_update(struct drm_plane *plane,
        if (win->csc) {
                vop_load_csc_table(vop, win->csc->y2r_offset, y2r_table);
                vop_load_csc_table(vop, win->csc->r2r_offset, r2r_table);
-               vop_load_csc_table(vop, win->csc->r2r_offset, r2y_table);
+               vop_load_csc_table(vop, win->csc->r2y_offset, r2y_table);
                VOP_WIN_SET_EXT(vop, win, csc, y2r_en, !!y2r_table);
                VOP_WIN_SET_EXT(vop, win, csc, r2r_en, !!r2r_table);
                VOP_WIN_SET_EXT(vop, win, csc, r2y_en, !!r2y_table);
index 3c97af58d2d187501e4fb7af2e9db823e879f29c..b4cee84650f486ac50d3ee9a0f1d34d3ed92a49a 100644 (file)
@@ -432,7 +432,7 @@ static const uint32_t vop_csc_y2r_bt709[] = {
 
 static const uint32_t vop_csc_r2y_bt709[] = {
        0x027500bb, 0xff99003f, 0x01c2fea5, 0xfe6801c2,
-       0xffd7fe68, 0x00010200, 0x00080200, 0x00080200,
+       0x0000ffd7, 0x00010200, 0x00080200, 0x00080200,
 };
 
 static const uint32_t vop_csc_y2r_bt2020[] = {