summaryrefslogtreecommitdiffstats
path: root/sdm/libs/core/strategy.cpp
diff options
context:
space:
mode:
authorXu Yang <yangxu@codeaurora.org>2016-01-26 17:23:00 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2016-03-18 00:33:37 -0700
commit009ad60ef34cad206b896b4abf1e8f9ed7e7fb15 (patch)
treed3dbc7d463358795acc2c1731182180a1030bfe2 /sdm/libs/core/strategy.cpp
parent951bdcd1e37ead5c7809c7ff3fe6af6fde091543 (diff)
downloadhardware_qcom_display-009ad60ef34cad206b896b4abf1e8f9ed7e7fb15.tar.gz
hardware_qcom_display-009ad60ef34cad206b896b4abf1e8f9ed7e7fb15.tar.bz2
hardware_qcom_display-009ad60ef34cad206b896b4abf1e8f9ed7e7fb15.zip
sdm: Set max_layers to 0 when HDMI is in S3D mode
1. Set max_layers to 0 if HDMI is in S3D mode. So that primary display will fall back to GPU composition and release pipes for HMDI, especially in Top-Bottom S3D mode and 2k/4k S3D video cases. 2. Change property name "sdm.hdmi.s3d_enable" to "sdm.hdmi.s3d_mode" to support top-bottom mode. The property value is: 1 for left-right mode, 2 for right-left mode, 3 for top-bottom mode, and 4 for frame pack mode. 3. Populate S3D mode in panel info to strategy extension. CRs-Fixed: 977346 Change-Id: If0fd5710206f862265f487ebb2705958c01fa9cc
Diffstat (limited to 'sdm/libs/core/strategy.cpp')
-rw-r--r--sdm/libs/core/strategy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sdm/libs/core/strategy.cpp b/sdm/libs/core/strategy.cpp
index 794b437b4..924047a21 100644
--- a/sdm/libs/core/strategy.cpp
+++ b/sdm/libs/core/strategy.cpp
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2014 - 2015, The Linux Foundation. All rights reserved.
+* Copyright (c) 2014 - 2016, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted
* provided that the following conditions are met:
@@ -43,7 +43,7 @@ DisplayError Strategy::Init() {
if (extension_intf_) {
error = extension_intf_->CreateStrategyExtn(display_type_, hw_panel_info_.mode,
- &strategy_intf_);
+ hw_panel_info_.s3d_mode, &strategy_intf_);
if (error != kErrorNone) {
DLOGE("Failed to create strategy");
return error;