DRI2: Implemented double buffering when using the hardware overlay
authorSiarhei Siamashka <siarhei.siamashka@gmail.com>
Tue, 30 Jul 2013 21:25:33 +0000 (00:25 +0300)
committerSiarhei Siamashka <siarhei.siamashka@gmail.com>
Tue, 30 Jul 2013 21:36:31 +0000 (00:36 +0300)
commita60b02388abfb4141811b94933489fcc43ecc747
treed686e9122c834b6c61d97644687585ee1e317ca3
parent7b07f25b95e3d605695ab8fcf7efdce8092baaf9
DRI2: Implemented double buffering when using the hardware overlay

That's the right thing to do and fixes issues such as
    https://github.com/ssvb/xf86-video-sunxifb/issues/6

As a result, now the framebuffer size may need to be larger in
order to accomodate two DRI2 buffers in the offscreen part of
the framebuffer. The users of sunxi hardware are advised to
increase the value of fb0_framebuffer_num variable in fex file
to 3 for 32bpp mode and to 5 for 16bpp mode.

Signed-off-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
src/sunxi_mali_ump_dri2.c
src/sunxi_mali_ump_dri2.h