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:
facd268
)
rk fb: fb mem alloc 32 align for special resolution
author
hjc
<hjc@rock-chips.com>
Wed, 7 May 2014 06:33:10 +0000
(14:33 +0800)
committer
hjc
<hjc@rock-chips.com>
Wed, 7 May 2014 06:34:40 +0000
(14:34 +0800)
drivers/video/rockchip/rk_fb.c
patch
|
blob
|
history
diff --git
a/drivers/video/rockchip/rk_fb.c
b/drivers/video/rockchip/rk_fb.c
index 9aff1558fa03233daf4aedc808f455b5df77285e..106c48c22fd167b158908a999ca64ac82f045943 100755
(executable)
--- a/
drivers/video/rockchip/rk_fb.c
+++ b/
drivers/video/rockchip/rk_fb.c
@@
-2687,7
+2687,7
@@
static int rk_fb_alloc_buffer(struct fb_info *fbi, int fb_id)
win = dev_drv->win[win_id];
if (!strcmp(fbi->fix.id, "fb0")) {
- fb_mem_size = 3 * (
fbi->var.xres
* fbi->var.yres) << 2;
+ fb_mem_size = 3 * (
((fbi->var.xres + 31)&(~31))
* fbi->var.yres) << 2;
fb_mem_size = ALIGN(fb_mem_size, SZ_1M);
#if defined(CONFIG_ION_ROCKCHIP)
handle = ion_alloc(rk_fb->ion_client, (size_t)fb_mem_size, 0, ION_HEAP(ION_CMA_HEAP_ID), 0);