From dc7076e724d072ace78f11bc6535a48cb8b9b184 Mon Sep 17 00:00:00 2001 From: Naomi Luis Date: Fri, 20 May 2011 11:49:29 -0700 Subject: [PATCH] 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 --- libgralloc-qsd8k/gpu.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libgralloc-qsd8k/gpu.cpp b/libgralloc-qsd8k/gpu.cpp index 1dfe191..85680b8 100755 --- a/libgralloc-qsd8k/gpu.cpp +++ b/libgralloc-qsd8k/gpu.cpp @@ -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: