提交 c7ffa59c 编写于 作者: M Mihail Atanassov 提交者: Liviu Dudau

drm: mali-dp: fix Lx_CONTROL register fields clobber

When updating the rotation fields, one of the assignments zeroes out the
rest of the register fields, which include settings for chroma siting,
inverse gamma, AMBA AXI caching, and alpha blending.
Signed-off-by: NMihail Atanassov <mihail.atanassov@arm.com>
Signed-off-by: NLiviu Dudau <Liviu.Dudau@arm.com>
上级 7916efe5
...@@ -219,7 +219,8 @@ static void malidp_de_plane_update(struct drm_plane *plane, ...@@ -219,7 +219,8 @@ static void malidp_de_plane_update(struct drm_plane *plane,
/* setup the rotation and axis flip bits */ /* setup the rotation and axis flip bits */
if (plane->state->rotation & DRM_ROTATE_MASK) if (plane->state->rotation & DRM_ROTATE_MASK)
val = ilog2(plane->state->rotation & DRM_ROTATE_MASK) << LAYER_ROT_OFFSET; val |= ilog2(plane->state->rotation & DRM_ROTATE_MASK) <<
LAYER_ROT_OFFSET;
if (plane->state->rotation & DRM_REFLECT_X) if (plane->state->rotation & DRM_REFLECT_X)
val |= LAYER_H_FLIP; val |= LAYER_H_FLIP;
if (plane->state->rotation & DRM_REFLECT_Y) if (plane->state->rotation & DRM_REFLECT_Y)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册