From c1e7e4861ad74c1f4cd5344e3ba29d13f11fc1e9 Mon Sep 17 00:00:00 2001 From: "Sravan Kumar D.V.N" Date: Fri, 3 Aug 2012 15:12:52 +0530 Subject: [PATCH] display : Enable vsync for MDP3 targets -Enable vsync for MDP3 targets -With this change all targets except 8x55, have vsync enabled Change-Id: Ic0856359a28c730948d7d74427f6802ed89cc1b1 --- libhwcomposer/hwc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libhwcomposer/hwc.cpp b/libhwcomposer/hwc.cpp index 1d7cf7b..1acd2cd 100644 --- a/libhwcomposer/hwc.cpp +++ b/libhwcomposer/hwc.cpp @@ -213,9 +213,9 @@ static int hwc_device_open(const struct hw_module_t* module, const char* name, methods->eventControl = hwc_eventControl; dev->device.common.tag = HARDWARE_DEVICE_TAG; - //XXX: This disables hardware vsync on 7x27A, 8x25 and 8x55 - // Fix when HW vsync is available on those targets - if(dev->mMDP.version < 410) + //XXX: This disables hardware vsync on 8x55 + // Fix when HW vsync is available on 8x55 + if(dev->mMDP.version == 400) dev->device.common.version = 0; else dev->device.common.version = HWC_DEVICE_API_VERSION_0_3;