summaryrefslogtreecommitdiff
path: root/libhwc2.1/libdisplayinterface/ExynosDeviceInterface.cpp
diff options
context:
space:
mode:
authorHyunKyung Kim <hk310.kim@samsung.com>2020-05-27 16:24:44 +0900
committerHyunKyung Kim <hk310.kim@samsung.com>2020-06-10 20:14:35 +0900
commit268dfe896bb0442694d2f259ed22f6e67505add2 (patch)
tree7459825608219ddf457ed3eb145e2ba3a5169b1b /libhwc2.1/libdisplayinterface/ExynosDeviceInterface.cpp
parent8fad441d19a636b0e3aee183c62921910f7bc639 (diff)
libhwc2.1: Fix bug updating MPP's attribute
Previous code added attribute value that gets from display driver to the default attribute value. Attribute should be replaced by the value from driver if driver supports attribute query. Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com> Change-Id: If2a37f2644863dfc7719c456b80402c00ace47cb
Diffstat (limited to 'libhwc2.1/libdisplayinterface/ExynosDeviceInterface.cpp')
-rw-r--r--libhwc2.1/libdisplayinterface/ExynosDeviceInterface.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libhwc2.1/libdisplayinterface/ExynosDeviceInterface.cpp b/libhwc2.1/libdisplayinterface/ExynosDeviceInterface.cpp
index fab3c9e..7920830 100644
--- a/libhwc2.1/libdisplayinterface/ExynosDeviceInterface.cpp
+++ b/libhwc2.1/libdisplayinterface/ExynosDeviceInterface.cpp
@@ -169,12 +169,14 @@ int32_t ExynosDeviceInterface::updateFeatureTable() {
// feature table count
for (uint32_t j = 0; j < featureTableCnt; j++){
if (feature_table[j].hwType == hwType) {
+ uint64_t attr = 0;
// dpp attr count
for (int k = 0; k < attrMapCnt; k++) {
if (c_r.attr & (1 << dpu_attr_map_table[k].dpp_attr)) {
- feature_table[j].attr |= dpu_attr_map_table[k].hwc_attr;
+ attr |= dpu_attr_map_table[k].hwc_attr;
}
}
+ feature_table[j].attr = attr;
}
}
}