Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Always use Client even if planes are more than layers #685

Open
wants to merge 1 commit into
base: bp_p_acrn
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions os/android/iahwc2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -980,9 +980,9 @@ HWC2::Error IAHWC2::HwcDisplay::ValidateDisplay(uint32_t *num_types,
* If more layers then planes, save one plane
* for client composited layers
*/
if (avail_planes < layers_.size())
if (avail_planes <= layers_.size())
avail_planes--;
if (layers_.size() > avail_planes) {
if (layers_.size() >= avail_planes) {
size_t lay_index = 0;
for (std::pair<const uint32_t, hwc2_layer_t> &l : z_map) {
if (lay_index == (layers_.size() - avail_planes)) {
Expand Down