diff options
author | qctecmdr <qctecmdr@localhost> | 2019-11-08 01:10:16 -0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-11-08 01:10:16 -0800 |
commit | f57663d9ae04e69aef2534728f92d7a0597655e4 (patch) | |
tree | 5d6ba63b5f67d37d86a0611559e60cf25a67dafa /sdm/libs/hwc2/hwc_session.cpp | |
parent | 73bd384d63892ffbc8c9af1d9b398bfeac975e98 (diff) | |
parent | 55377d56868db94b0b1944aa764dc72e3969043a (diff) |
Merge "hwc2 : Correcting primary display count handling"
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 7b60720d..5286873d 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--; } |