libgralloc-qsd8k: Modify buffer sizes for NV12, NV21 and YV12 formats

Allocate buffer sizes that are multiples of 4K for the NV21, NV12 and
YV12 formats.

Change-Id: I3febaef9dda2586ef3b35945f30f655e07f5e369
CRs-fixed: 287882
This commit is contained in:
Naomi Luis 2011-05-20 11:49:29 -07:00 committed by Govind Surti
parent 7c3d92ed0b
commit dc7076e724

View File

@ -333,6 +333,7 @@ int gpu_context_t::alloc_impl(int w, int h, int format, int usage,
alignedh = h;
size = alignedw*alignedh +
(ALIGN(alignedw/2, 16) * (alignedh/2))*2;
size = ALIGN(size, 4096);
break;
default: