rk fb: recovery need two framebuffer
authorhjc <hjc@rock-chips.com>
Thu, 9 Apr 2015 08:26:57 +0000 (16:26 +0800)
committerhjc <hjc@rock-chips.com>
Thu, 9 Apr 2015 08:26:57 +0000 (16:26 +0800)
Signed-off-by: hjc <hjc@rock-chips.com>
drivers/video/rockchip/screen/rk_screen.c

index d3aadd6bfd93ec18aa8a48e113cf625f2999340a..8725d69cc6bafd448d5e041d764691beb7a0a39c 100755 (executable)
@@ -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 */