summaryrefslogtreecommitdiff
path: root/libhwc2.1/libresource/ExynosResourceManager.cpp
diff options
context:
space:
mode:
authorYichi Chen <yichichen@google.com>2020-11-27 16:59:17 +0800
committerYichi Chen <yichichen@google.com>2020-12-14 15:48:31 +0800
commit24d72cb5d38b4d4cad1ebd986d6a5cd78d334e8c (patch)
tree2a334a969b3c5d27fbabeddb6bd8bc2271b874f0 /libhwc2.1/libresource/ExynosResourceManager.cpp
parent6132ece5176b49e1da92c6ecceb23bc0e8b8a3ae (diff)
libhwc2.1: Add basic support function for AFBC color format
It is necessary to consider color format with AFBC compression type since AFBC may provide different configuration especially for YUV formats. The patch extends the basic functions in ExynosHWCHelper.cpp to include AFBC compression type while checking the HAL format. Bug: 139446002 Test: AFBC video playback with DPU composition Change-Id: I23918f526ffbe655064c08ff4ef9cc7843df9188
Diffstat (limited to 'libhwc2.1/libresource/ExynosResourceManager.cpp')
-rw-r--r--libhwc2.1/libresource/ExynosResourceManager.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/libhwc2.1/libresource/ExynosResourceManager.cpp b/libhwc2.1/libresource/ExynosResourceManager.cpp
index 3a2fc76..eccb102 100644
--- a/libhwc2.1/libresource/ExynosResourceManager.cpp
+++ b/libhwc2.1/libresource/ExynosResourceManager.cpp
@@ -2258,11 +2258,11 @@ void ExynosResourceManager::makeFormatRestrictions(restriction_key_t table) {
mFormatRestrictions[mFormatRestrictionCnt] = table;
- HDEBUGLOGD(eDebugDefault, "MPP : %s, %d, %s, %d"
- ,getMPPStr(mFormatRestrictions[mFormatRestrictionCnt].hwType).string()
- ,mFormatRestrictions[mFormatRestrictionCnt].nodeType
- ,getFormatStr(mFormatRestrictions[mFormatRestrictionCnt].format).string()
- ,mFormatRestrictions[mFormatRestrictionCnt].reserved);
+ HDEBUGLOGD(eDebugDefault, "MPP : %s, %d, %s, %d",
+ getMPPStr(mFormatRestrictions[mFormatRestrictionCnt].hwType).string(),
+ mFormatRestrictions[mFormatRestrictionCnt].nodeType,
+ getFormatStr(mFormatRestrictions[mFormatRestrictionCnt].format, COMP_ANY).string(),
+ mFormatRestrictions[mFormatRestrictionCnt].reserved);
mFormatRestrictionCnt++;
}