Commit f1c79abe authored by Mark Yao's avatar Mark Yao

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: default avatarMark Yao <mark.yao@rock-chips.com>
parent db561760
...@@ -667,7 +667,7 @@ static int vop_update_plane_event(struct drm_plane *plane, ...@@ -667,7 +667,7 @@ static int vop_update_plane_event(struct drm_plane *plane,
offset += (src.y1 >> 16) * fb->pitches[0]; offset += (src.y1 >> 16) * fb->pitches[0];
yrgb_mst = rk_obj->dma_addr + offset; yrgb_mst = rk_obj->dma_addr + offset;
y_vir_stride = fb->pitches[0] / (fb->bits_per_pixel >> 3); y_vir_stride = fb->pitches[0] >> 2;
/* /*
* If this plane update changes the plane's framebuffer, (or more * If this plane update changes the plane's framebuffer, (or more
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment