diff options
author | HyunKyung Kim <hk310.kim@samsung.com> | 2019-10-01 20:12:10 +0900 |
---|---|---|
committer | HyunKyung Kim <hk310.kim@samsung.com> | 2020-06-10 20:14:35 +0900 |
commit | bb990ffe21173f914f1d914c2cc3d1dd7e37a5be (patch) | |
tree | 5609ff8c9f79972a4763ed17c2c14c1d291a49e3 /libhwc2.1/libdisplayinterface/ExynosDeviceInterface.cpp | |
parent | 2eda2972d9e315c9d5058644a74386333e9168fc (diff) |
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 <hk310.kim@samsung.com>
Diffstat (limited to 'libhwc2.1/libdisplayinterface/ExynosDeviceInterface.cpp')
-rw-r--r-- | libhwc2.1/libdisplayinterface/ExynosDeviceInterface.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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 <unordered_set> +#include <unordered_map> 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; } |