summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2017-06-14 15:47:12 -0500
committerSumit Semwal <sumit.semwal@linaro.org>2018-04-19 15:09:58 +0530
commit60a60eee1e1abdf8e8621bb1a64a53a6ba976233 (patch)
tree3dca4770fc1f4f33a537b44432bf34a691469b47
parentd12274da07ccf85a287134d380c46d1b3ca5aedf (diff)
force single plane
Change-Id: Ic963c356ab1ef241d92fde6c890936b560f52051 Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
-rw-r--r--drmhwctwo.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/drmhwctwo.cpp b/drmhwctwo.cpp
index dfca1a6..5ab4595 100644
--- a/drmhwctwo.cpp
+++ b/drmhwctwo.cpp
@@ -692,12 +692,10 @@ HWC2::Error DrmHwcTwo::HwcDisplay::ValidateDisplay(uint32_t *num_types,
case HWC2::Composition::SolidColor:
case HWC2::Composition::Cursor:
case HWC2::Composition::Sideband:
+ default:
layer.set_validated_type(HWC2::Composition::Client);
++*num_types;
break;
- default:
- layer.set_validated_type(layer.sf_type());
- break;
}
}
return *num_types ? HWC2::Error::HasChanges : HWC2::Error::None;