diff options
author | Satbir Singh <satbsing@codeaurora.org> | 2019-09-30 14:14:53 -0400 |
---|---|---|
committer | satbir singh <satbsing@codeaurora.org> | 2019-10-01 17:52:21 -0400 |
commit | 55377d56868db94b0b1944aa764dc72e3969043a (patch) | |
tree | 8685e49bcb79b741cd7b33e76e9c8987d3d3e260 /sdm/libs/hwc2/hwc_session.cpp | |
parent | 6fe8dfe472279da74ca575eccb28b80607f3533e (diff) |
hwc2 : Correcting primary display count handling
Check the count for the pluggable (max_pluggable)
and buildin display (max_buildin) to be non-zero
before reducing the count for the instance of
primary display already used.
Signed-off-by: satbir singh <satbsing@codeaurora.org>
Change-Id: Ie067badd523d9ea9db428de596a8cc2e7e2e26e8
Diffstat (limited to 'sdm/libs/hwc2/hwc_session.cpp')
-rw-r--r-- | sdm/libs/hwc2/hwc_session.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sdm/libs/hwc2/hwc_session.cpp b/sdm/libs/hwc2/hwc_session.cpp index 0afaeab4..0f86b397 100644 --- a/sdm/libs/hwc2/hwc_session.cpp +++ b/sdm/libs/hwc2/hwc_session.cpp @@ -321,10 +321,10 @@ void HWCSession::InitSupportedDisplaySlots() { return; } - if (kPluggable == hw_disp_info.type) { + if (kPluggable == hw_disp_info.type && max_pluggable != 0) { // If primary is a pluggable display, we have already used one pluggable display interface. max_pluggable--; - } else { + } else if (max_builtin != 0) { max_builtin--; } |