projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db56176
)
drm/rockchip: vop: Fix virtual stride calculation
author
Mark Yao
<mark.yao@rock-chips.com>
Fri, 26 Jun 2015 10:07:25 +0000
(18:07 +0800)
committer
Mark Yao
<mark.yao@rock-chips.com>
Wed, 26 Aug 2015 06:16:25 +0000
(14:16 +0800)
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>
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
index 34b78e73653248316fcd24732d03d253454c6e50..6b447318ef510b98bd66250603d9769eaffb25f3 100644
(file)
--- 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,
offset += (src.y1 >> 16) * fb->pitches[0];
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