From bb990ffe21173f914f1d914c2cc3d1dd7e37a5be Mon Sep 17 00:00:00 2001 From: HyunKyung Kim Date: Tue, 1 Oct 2019 20:12:10 +0900 Subject: libhwc2.1: Update MPP attribute with module setting Previous code update MPP atributes using feature_table[]. feature_table is updated and read from different file. feature_table is static global variable so updated value can't be read even if it was updated in other file. This patch fixes this issue. This patch saves updated attribute in ExynosResourceManager::mMPPAttrs and read attribute from this ExynosResourceManager::mMPPAttrs. Change-Id: Ib1f28871d33e13346c79b7b7d8a8532a72b7dec5 Signed-off-by: HyunKyung Kim --- libhwc2.1/libdisplayinterface/ExynosDeviceInterface.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libhwc2.1/libdisplayinterface/ExynosDeviceInterface.cpp') diff --git a/libhwc2.1/libdisplayinterface/ExynosDeviceInterface.cpp b/libhwc2.1/libdisplayinterface/ExynosDeviceInterface.cpp index 04ac17e..aff8b45 100644 --- a/libhwc2.1/libdisplayinterface/ExynosDeviceInterface.cpp +++ b/libhwc2.1/libdisplayinterface/ExynosDeviceInterface.cpp @@ -20,6 +20,7 @@ #include "ExynosResourceManager.h" #include "ExynosMPP.h" #include +#include extern feature_support_t feature_table[]; @@ -180,6 +181,8 @@ int32_t ExynosDeviceInterface::updateFeatureTable() { HDEBUGLOGD(eDebugAttrSetting, "type : %d, feature : 0x%lx", feature_table[j].hwType, (unsigned long)feature_table[j].attr); + mExynosDevice->mResourceManager->mMPPAttrs.insert(std::make_pair((uint32_t)feature_table[j].hwType, + (uint64_t)feature_table[j].attr)); } return 0; } -- cgit v1.2.3