mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
rk fb: fb mem alloc 32 align for special resolution
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user