From 49e5108eb6444e15edb323b957af9ae36c3e03b5 Mon Sep 17 00:00:00 2001 From: Greg Hackmann Date: Tue, 31 Jul 2012 09:50:38 -0700 Subject: [PATCH] HACK: hwc: reserve gscaler 2 for camera Change-Id: Ic4a2e430849431212322d2cf6c1ae0cf588186c3 Signed-off-by: Greg Hackmann --- libhwc/hwc.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libhwc/hwc.cpp b/libhwc/hwc.cpp index 7dd204b..35c1ad9 100644 --- a/libhwc/hwc.cpp +++ b/libhwc/hwc.cpp @@ -54,9 +54,10 @@ typedef android::Vector hwc_callback_queue_t; const size_t NUM_HW_WINDOWS = 5; const size_t NO_FB_NEEDED = NUM_HW_WINDOWS + 1; const size_t MAX_PIXELS = 2560 * 1600 * 2; -const size_t NUM_GSC_UNITS = 4; +const size_t NUM_GSC_UNITS = 3; const size_t GSC_W_ALIGNMENT = 16; const size_t GSC_H_ALIGNMENT = 16; +const int CAMERA_GSC_IDX = 2; struct exynos5_hwc_composer_device_1_t; @@ -595,6 +596,8 @@ static int exynos5_prepare(hwc_composer_device_1_t *dev, pdev->bufs.gsc_map[i].mode = exynos5_gsc_map_t::GSC_M2M; pdev->bufs.gsc_map[i].idx = nextGsc++; + if (nextGsc == CAMERA_GSC_IDX) + nextGsc++; } } nextWindow++; -- 2.20.1