aboutsummaryrefslogtreecommitdiff
path: root/platformhisi.cpp
diff options
context:
space:
mode:
authorLowry Li <lowry.li@arm.com>2018-08-28 17:58:21 +0800
committerSean Paul <seanpaul@chromium.org>2018-09-04 16:09:55 -0400
commit9b6cafd4e218556b56ccfa7b5e933a808c5353fd (patch)
treeb604984f55ec34346ae2c58512764cce18dbf86a /platformhisi.cpp
parent088fed0a54a6b338a04b49642a0e382f8687169c (diff)
downloaddrm_hwcomposer-9b6cafd4e218556b56ccfa7b5e933a808c5353fd.tar.gz
drm_hwcomposer: Add support for pixel blend mode property
The upstream version of pixel blend mode property will be added to the DRM core. So added support for pixel blend mode property to the DrmPlane. Created ValidatePlane() function in Planner to do the blend check, and also moved rotation and plane alpha property check there. Fixed the Emplace() call in platformhisi.cpp as was done with the other planner implementations. Change-Id: I7e6714699cf7c222a83de472060d4625e1e6945a Reviewed-by: Sean Paul <seanpaul@chromium.org> Reviewed-by: Liviu Dudau <liviu.dudau@arm.com> Signed-off-by: Lowry Li <lowry.li@arm.com> Tested-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'platformhisi.cpp')
-rw-r--r--platformhisi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platformhisi.cpp b/platformhisi.cpp
index 68bb5a7..0e12ef1 100644
--- a/platformhisi.cpp
+++ b/platformhisi.cpp
@@ -153,7 +153,7 @@ class PlanStageHiSi : public Planner::PlanStage {
continue;
int ret = Emplace(composition, planes, DrmCompositionPlane::Type::kLayer,
- crtc, i->first);
+ crtc, std::make_pair(i->first, i->second));
layers_added++;
// We don't have any planes left
if (ret == -ENOENT)