From e1ad97b825e3c0b67b847caa0bb44a15df85e361 Mon Sep 17 00:00:00 2001 From: hjc Date: Thu, 9 Apr 2015 16:26:57 +0800 Subject: [PATCH] rk fb: recovery need two framebuffer Signed-off-by: hjc --- drivers/video/rockchip/screen/rk_screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/rockchip/screen/rk_screen.c b/drivers/video/rockchip/screen/rk_screen.c index d3aadd6bfd93..8725d69cc6ba 100755 --- a/drivers/video/rockchip/screen/rk_screen.c +++ b/drivers/video/rockchip/screen/rk_screen.c @@ -45,7 +45,7 @@ size_t get_fb_size(u8 reserved_fb) /* align as 64 bytes(16*4) in an odd number of times */ xres = ALIGN_64BYTE_ODD_TIMES(xres, ALIGN_PIXEL_64BYTE_RGB8888); if (reserved_fb == 1) { - size = (xres * yres << 2);/*one buffer*/ + size = (xres * yres << 2) << 1;/*two buffer*/ } else { #if defined(CONFIG_THREE_FB_BUFFER) size = (xres * yres << 2) * 3; /* three buffer */ -- 2.34.1