From 9cdf0b93ca04c8a15df0fb2b09f363d19089559e Mon Sep 17 00:00:00 2001 From: Naomi Luis Date: Tue, 8 Mar 2011 20:07:20 -0800 Subject: [PATCH] libgralloc-qsd8k: Align the chroma size for NV12Tiled formats to 8K The video decoder requires the chroma and luma sizes to be aligned to 8K. Change-Id: Ie378728647348812197b48ca4a9299344e56c3af --- libgralloc-qsd8k/gpu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgralloc-qsd8k/gpu.cpp b/libgralloc-qsd8k/gpu.cpp index b3a83ce..68177a5 100755 --- a/libgralloc-qsd8k/gpu.cpp +++ b/libgralloc-qsd8k/gpu.cpp @@ -350,7 +350,7 @@ int gpu_context_t::alloc_impl(int w, int h, int format, int usage, // The GPU needs 4K alignment, but the video decoder needs 8K alignedw = ALIGN(w, 128); size = ALIGN( alignedw * alignedh, 8192); - size += ALIGN( alignedw * ALIGN(h/2, 32), 4096); + size += ALIGN( alignedw * ALIGN(h/2, 32), 8192); break; case HAL_PIXEL_FORMAT_YCbCr_420_SP: case HAL_PIXEL_FORMAT_YCrCb_420_SP: