summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRanjith Kagathi Ananda <ranjith@codeaurora.org>2015-06-18 17:03:47 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2016-02-19 07:39:48 -0800
commitcc128578afd5d9daab8b589ca66fa6a89aaef8a1 (patch)
tree527d7bf395407a1c9354b91fd3401e1666ab87c8
parentff461085e0df5bf232485d67d7deea204dc77c1f (diff)
downloadhardware_qcom_display-cc128578afd5d9daab8b589ca66fa6a89aaef8a1.tar.gz
hardware_qcom_display-cc128578afd5d9daab8b589ca66fa6a89aaef8a1.tar.bz2
hardware_qcom_display-cc128578afd5d9daab8b589ca66fa6a89aaef8a1.zip
gralloc: Fix RAW10 stride
RAW10 stride should be aligned to 8 bytes and not 16 bytes Change-Id: Ie1c6f3965a0b6ae1db399fc856b4deb55880463e
-rw-r--r--libgralloc/alloc_controller.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgralloc/alloc_controller.cpp b/libgralloc/alloc_controller.cpp
index 430d7fda7..9eb786eee 100644
--- a/libgralloc/alloc_controller.cpp
+++ b/libgralloc/alloc_controller.cpp
@@ -235,7 +235,7 @@ void AdrenoMemInfo::getAlignedWidthAndHeight(int width, int height, int format,
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);