summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2016-12-13 13:20:31 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2016-12-13 13:20:31 -0800
commitbd5a8c7595e63560bf96bf6e3d7bdb27f7d57d97 (patch)
tree065e59253da612f2ec3182a4609c04fbf142ce1b
parent0e552d584269f81e880d56de941f384801e9c5b4 (diff)
parent15f91e8e560a70771fadc0d32278bf35e3f87fce (diff)
downloaddisplay-bd5a8c7595e63560bf96bf6e3d7bdb27f7d57d97.tar.gz
Merge "sdm: Indicate driver about multi roi pu usage."
-rw-r--r--sdm/libs/core/fb/hw_primary.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/sdm/libs/core/fb/hw_primary.cpp b/sdm/libs/core/fb/hw_primary.cpp
index e4a055eb..cf474ec6 100644
--- a/sdm/libs/core/fb/hw_primary.cpp
+++ b/sdm/libs/core/fb/hw_primary.cpp
@@ -65,6 +65,10 @@
#define MDP_COMMIT_AVR_ONE_SHOT_MODE 0x10
#endif
+#ifndef MDP_COMMIT_PARTIAL_UPDATE_DUAL_ROI
+#define MDP_COMMIT_PARTIAL_UPDATE_DUAL_ROI 0x20
+#endif
+
namespace sdm {
using std::string;
@@ -374,6 +378,7 @@ DisplayError HWPrimary::Validate(HWLayers *hw_layers) {
// Update second roi information in right_roi
if (hw_layer_info.left_frame_roi.size() == 2) {
+ mdp_commit.flags |= MDP_COMMIT_PARTIAL_UPDATE_DUAL_ROI;
right_roi = hw_layer_info.left_frame_roi.at(1);
}