diff options
author | Ramkumar Radhakrishnan <ramkumar@codeaurora.org> | 2018-03-08 14:53:15 -0800 |
---|---|---|
committer | Ramkumar Radhakrishnan <ramkumar@codeaurora.org> | 2018-03-23 14:49:12 -0700 |
commit | 4176c8fb00429c50614b9d478981ef83e2ae7288 (patch) | |
tree | a736cbee587c16904ebeeb790604c5915fa9635a /sdm | |
parent | 88c1c291c99bee0c5f7217506af5eb6c18112d23 (diff) | |
download | android_hardware_qcom_sdm710_display-4176c8fb00429c50614b9d478981ef83e2ae7288.tar.gz android_hardware_qcom_sdm710_display-4176c8fb00429c50614b9d478981ef83e2ae7288.tar.bz2 android_hardware_qcom_sdm710_display-4176c8fb00429c50614b9d478981ef83e2ae7288.zip |
sdm: Add interface to populate secure ui pipe capability
Add drm/hw interface to populate block_secure_ui property from
pipe capabilities
Change-Id: I24b34798aca0bd6ffe3051659cfbc1a70e3aa8a9
CRs-Fixed: 2206828
Diffstat (limited to 'sdm')
-rw-r--r-- | sdm/include/private/hw_info_types.h | 1 | ||||
-rw-r--r-- | sdm/libs/core/drm/hw_info_drm.cpp | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/sdm/include/private/hw_info_types.h b/sdm/include/private/hw_info_types.h index 80e91caa..456d72a8 100644 --- a/sdm/include/private/hw_info_types.h +++ b/sdm/include/private/hw_info_types.h @@ -145,6 +145,7 @@ struct HWPipeCaps { uint32_t id = 0; uint32_t master_pipe_id = 0; uint32_t max_rects = 1; + bool block_sec_ui = false; }; struct HWRotatorInfo { diff --git a/sdm/libs/core/drm/hw_info_drm.cpp b/sdm/libs/core/drm/hw_info_drm.cpp index b1b07b5e..d46d0abb 100644 --- a/sdm/libs/core/drm/hw_info_drm.cpp +++ b/sdm/libs/core/drm/hw_info_drm.cpp @@ -399,8 +399,10 @@ void HWInfoDRM::GetHWPlanesInfo(HWResourceInfo *hw_resource) { } pipe_caps.id = pipe_obj.first; pipe_caps.master_pipe_id = pipe_obj.second.master_plane_id; - DLOGI("Adding %s Pipe : Id %x, master_pipe_id : Id %x", - name.c_str(), pipe_obj.first, pipe_obj.second.master_plane_id); + pipe_caps.block_sec_ui = pipe_obj.second.block_sec_ui; + DLOGI("Adding %s Pipe : Id %d, master_pipe_id : Id %d block_sec_ui: %d", + name.c_str(), pipe_obj.first, pipe_obj.second.master_plane_id, + pipe_obj.second.block_sec_ui); hw_resource->hw_pipes.push_back(std::move(pipe_caps)); } } |