diff options
author | Mark Yao <mark.yao@rock-chips.com> | 2015-06-26 06:07:25 -0400 |
---|---|---|
committer | Mark Yao <mark.yao@rock-chips.com> | 2015-08-26 02:16:25 -0400 |
commit | f1c79abef5bae62aefcadf16917905cb7f98dc19 (patch) | |
tree | 11e194b8c338a01525c7d926e6ee0400b1dca255 /drivers/gpu/drm/rockchip | |
parent | db56176025cee5e242dfeed5f4e304d095d29fa3 (diff) |
drm/rockchip: vop: Fix virtual stride calculation
vir_stride need number words of the virtual width, and fb->pitches
save bytes_per_pixel, so just div 4 switch to stride.
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
Diffstat (limited to 'drivers/gpu/drm/rockchip')
-rw-r--r-- | drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c index 34b78e736532..6b447318ef51 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c | |||
@@ -667,7 +667,7 @@ static int vop_update_plane_event(struct drm_plane *plane, | |||
667 | offset += (src.y1 >> 16) * fb->pitches[0]; | 667 | offset += (src.y1 >> 16) * fb->pitches[0]; |
668 | yrgb_mst = rk_obj->dma_addr + offset; | 668 | yrgb_mst = rk_obj->dma_addr + offset; |
669 | 669 | ||
670 | y_vir_stride = fb->pitches[0] / (fb->bits_per_pixel >> 3); | 670 | y_vir_stride = fb->pitches[0] >> 2; |
671 | 671 | ||
672 | /* | 672 | /* |
673 | * If this plane update changes the plane's framebuffer, (or more | 673 | * If this plane update changes the plane's framebuffer, (or more |