summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Clark <robdclark@gmail.com>2017-03-20 12:53:44 -0400
committerRobert Foss <robert.foss@collabora.com>2017-03-22 14:38:43 -0400
commit01a848eaef152486b1d26d10b6baf411e2b8aa7d (patch)
tree1a5f0e9f2b1fb329eac46911dc21bb981ffcfaa3
parentf104749ab9e383d8c53bcfa27a4e811c8798b2b7 (diff)
downloaddrm_hwcomposer-01a848eaef152486b1d26d10b6baf411e2b8aa7d.tar.gz
drm_hwcomposer-01a848eaef152486b1d26d10b6baf411e2b8aa7d.tar.xz
drm_hwcomposer: Change Cursor layer type to Device type
This works around an issue on db410c where the opacity of cursor layer cursor layer is handled incorrectly. Change-Id: Ie01c14bf66b30e9663f889b6dd471d00cd367a92
-rw-r--r--drmhwctwo.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/drmhwctwo.cpp b/drmhwctwo.cpp
index 8f37995..479812a 100644
--- a/drmhwctwo.cpp
+++ b/drmhwctwo.cpp
@@ -696,11 +696,13 @@ HWC2::Error DrmHwcTwo::HwcDisplay::ValidateDisplay(uint32_t *num_types,
DrmHwcTwo::HwcLayer &layer = l.second;
switch (layer.sf_type()) {
case HWC2::Composition::SolidColor:
- case HWC2::Composition::Cursor:
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;