diff options
author | Ranjith Kagathi Ananda <ranjith@codeaurora.org> | 2015-06-18 17:03:47 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-03-03 09:38:18 -0800 |
commit | 36e000ae265a5ae07a2e9f45834192bda4099f6a (patch) | |
tree | ff7baa534df5146e456e4bd9632a9e260e733682 /libgralloc | |
parent | eb97bc9abc363a19b6e665563c7ebc519394abda (diff) | |
download | display-36e000ae265a5ae07a2e9f45834192bda4099f6a.tar.gz |
gralloc: Fix RAW10 stride
RAW10 stride should be aligned to 8 bytes and not 16 bytes
Change-Id: Ie1c6f3965a0b6ae1db399fc856b4deb55880463e
Diffstat (limited to 'libgralloc')
-rw-r--r-- | libgralloc/alloc_controller.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgralloc/alloc_controller.cpp b/libgralloc/alloc_controller.cpp index 430d7fda..9eb786ee 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); |