summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu.vizoso@collabora.com>2017-04-07 11:04:04 +0200
committerTomeu Vizoso <tomeu.vizoso@collabora.com>2017-04-07 11:04:04 +0200
commitdbe21cb52f602eef11bf5ac083691e5b2b0a35ba (patch)
treee8e6520abb2499a48687ad25a75d712469d307d8
parent8313f972129a5746bd0fe8dd162ecb9109a12c38 (diff)
downloaddrm_hwcomposer-dbe21cb52f602eef11bf5ac083691e5b2b0a35ba.tar.gz
drm_hwcomposer-dbe21cb52f602eef11bf5ac083691e5b2b0a35ba.tar.xz
HACK: Change the composition type of all layers to Client
-rw-r--r--drmhwctwo.cpp15
1 files changed, 2 insertions, 13 deletions
diff --git a/drmhwctwo.cpp b/drmhwctwo.cpp
index c430cc8..f381862 100644
--- a/drmhwctwo.cpp
+++ b/drmhwctwo.cpp
@@ -712,19 +712,8 @@ HWC2::Error DrmHwcTwo::HwcDisplay::ValidateDisplay(uint32_t *num_types,
*num_requests = 0;
for (std::pair<const hwc2_layer_t, DrmHwcTwo::HwcLayer> &l : layers_) {
DrmHwcTwo::HwcLayer &layer = l.second;
- switch (layer.sf_type()) {
- case HWC2::Composition::SolidColor:
- case HWC2::Composition::Sideband:
- layer.set_validated_type(HWC2::Composition::Client);
- ++*num_types;
- break;
- case HWC2::Composition::Cursor:
- layer.set_validated_type(HWC2::Composition::Device);
- break;
- default:
- layer.set_validated_type(layer.sf_type());
- break;
- }
+ layer.set_validated_type(HWC2::Composition::Client);
+ ++*num_types;
}
return HWC2::Error::None;
}