summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcodeworkx <codeworkx@cyanogenmod.org>2012-12-07 20:51:05 +0100
committercodeworkx <codeworkx@cyanogenmod.org>2012-12-07 20:51:05 +0100
commit6aab55a059d81151596ac2feff8ee5192aa55930 (patch)
treed13b44502bf7738ea6b142a2dc4627e238f0812f
parent3e73708c2e79e38420e686a9dd139f5325a927ed (diff)
downloadandroid_hardware_samsung-6aab55a059d81151596ac2feff8ee5192aa55930.tar.gz
android_hardware_samsung-6aab55a059d81151596ac2feff8ee5192aa55930.tar.bz2
android_hardware_samsung-6aab55a059d81151596ac2feff8ee5192aa55930.zip
exynos4: gralloc: fix fimc1/ion logic
Change-Id: I0d125275e4d9ec3b6368572b9c0aa1033969c98d
-rw-r--r--exynos4/hal/libgralloc_ump/alloc_device.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/exynos4/hal/libgralloc_ump/alloc_device.cpp b/exynos4/hal/libgralloc_ump/alloc_device.cpp
index 2acf0b3..65eb717 100644
--- a/exynos4/hal/libgralloc_ump/alloc_device.cpp
+++ b/exynos4/hal/libgralloc_ump/alloc_device.cpp
@@ -404,7 +404,7 @@ static int alloc_device_alloc(alloc_device_t* dev, int w, int h, int format,
#ifdef INSIGNAL_FIMC1
if (usage & GRALLOC_USAGE_HW_FIMC1) {
#else
- if (usage & (GRALLOC_USAGE_HW_ION || GRALLOC_USAGE_HW_FIMC1)) {
+ if (usage & GRALLOC_USAGE_HW_ION || usage & GRALLOC_USAGE_HW_FIMC1) {
#endif
size += PAGE_SIZE * 2;
}