drm/msm/mdp5: Fix PIPE source image size settings
authorHai Li <hali@codeaurora.org>
Thu, 5 Mar 2015 20:20:49 +0000 (15:20 -0500)
committerRob Clark <robdclark@gmail.com>
Wed, 1 Apr 2015 23:29:35 +0000 (19:29 -0400)
The width and height in SSPP_SRC_IMG_SIZE register should be the
size of the entire source framebuffer, not the fetch size.

Signed-off-by: Hai Li <hali@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c

index 6bd48e2462833e03e63a2d2967cda30db2cce8da..18a3d203b17439c2be3f0b0c72e033ed3996ae86 100644 (file)
@@ -507,8 +507,8 @@ static int mdp5_plane_mode_set(struct drm_plane *plane,
        spin_lock_irqsave(&mdp5_plane->pipe_lock, flags);
 
        mdp5_write(mdp5_kms, REG_MDP5_PIPE_SRC_IMG_SIZE(pipe),
-                       MDP5_PIPE_SRC_IMG_SIZE_WIDTH(src_w) |
-                       MDP5_PIPE_SRC_IMG_SIZE_HEIGHT(src_h));
+                       MDP5_PIPE_SRC_IMG_SIZE_WIDTH(fb->width) |
+                       MDP5_PIPE_SRC_IMG_SIZE_HEIGHT(fb->height));
 
        mdp5_write(mdp5_kms, REG_MDP5_PIPE_SRC_SIZE(pipe),
                        MDP5_PIPE_SRC_SIZE_WIDTH(src_w) |