drm/msm/mdp5: fix cursor blending
authorRob Clark <robdclark@gmail.com>
Tue, 24 Feb 2015 20:29:37 +0000 (15:29 -0500)
committerRob Clark <robdclark@gmail.com>
Wed, 4 Mar 2015 23:23:40 +0000 (18:23 -0500)
Seems like we just want BLEND_EN and not BLEND_TRANSP_EN (setting the
latter results in black pixels in the cursor image treated as
transparent).

Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c

index 4c4be4344653306e605b6f8a9e9e58cd2ff498ae..2f2863cf8b45f21e692e3e50f09c88275d83da63 100644 (file)
@@ -499,7 +499,6 @@ static int mdp5_crtc_cursor_set(struct drm_crtc *crtc,
        mdp5_write(mdp5_kms, REG_MDP5_LM_CURSOR_BASE_ADDR(lm), cursor_addr);
 
        blendcfg = MDP5_LM_CURSOR_BLEND_CONFIG_BLEND_EN;
-       blendcfg |= MDP5_LM_CURSOR_BLEND_CONFIG_BLEND_TRANSP_EN;
        blendcfg |= MDP5_LM_CURSOR_BLEND_CONFIG_BLEND_ALPHA_SEL(cur_alpha);
        mdp5_write(mdp5_kms, REG_MDP5_LM_CURSOR_BLEND_CONFIG(lm), blendcfg);