Skip to content

Commit

Permalink
linux:driver:gpu:drm:starfive
Browse files Browse the repository at this point in the history
fix color problem of nv21
Signed-off-by: shengyang.chen<shengyang.chen@starfivetech.com>
  • Loading branch information
yangyang191110 committed Feb 25, 2022
1 parent 3da8d33 commit 53ba58c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/starfive/starfive_drm_vpp.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ static void pp_srcfmt_set(struct starfive_crtc *sf_crtc, int ppNum, struct pp_vi
case COLOR_YUV420_NV21:
pp_srcfmt_cfg(sf_crtc, ppNum, PP_SRC_YUV420I, 0x1, 0,
COLOR_YUV420_NV12 - COLOR_YUV420_NV21, 0x0);
break;
case COLOR_YUV420_NV12:
pp_srcfmt_cfg(sf_crtc, ppNum, PP_SRC_YUV420I, 0x1, 0,
COLOR_YUV420_NV12 - COLOR_YUV420_NV12, 0x0);
Expand Down

0 comments on commit 53ba58c

Please sign in to comment.