gralloc: Fix RAW10 stride
RAW10 stride should be aligned to 8 bytes and not 16 bytes
Change-Id: Ie1c6f3965a0b6ae1db399fc856b4deb55880463e
diff --git a/libgralloc/alloc_controller.cpp b/libgralloc/alloc_controller.cpp
index 430d7fd..9eb786e 100644
--- a/libgralloc/alloc_controller.cpp
+++ b/libgralloc/alloc_controller.cpp
@@ -235,7 +235,7 @@
aligned_w = ALIGN(width, 16);
break;
case HAL_PIXEL_FORMAT_RAW10:
- aligned_w = ALIGN(width * 10 /8, 16);
+ aligned_w = ALIGN(width * 10 / 8, 8);
break;
case HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED:
aligned_w = ALIGN(width, 128);