diff options
author | Saurabh Shah <saurshah@codeaurora.org> | 2013-05-15 16:32:13 -0700 |
---|---|---|
committer | Saurabh Shah <saurshah@codeaurora.org> | 2013-05-16 17:56:37 -0700 |
commit | e247408f065fde9c84b3af6962e5a9f968e4c772 (patch) | |
tree | dbed8f310b471f828ae899095723960746815fc4 /libqdutils | |
parent | 4314d96ed6425de711d74e262cd4ce3ad8107e6b (diff) | |
download | display-e247408f065fde9c84b3af6962e5a9f968e4c772.tar.gz |
hwc: Don't permit rotator use under certain conditions
These include constrained targets, with external connected which could
lead to a scarcity of pipes. Furthermore owing to a scarcity of writeback
interfaces, even if pipes are available, we may not be able to still
use rotator.
Change-Id: Ie2fb4c1726f32addcace89c268a126abe0cddbe0
Diffstat (limited to 'libqdutils')
-rw-r--r-- | libqdutils/mdp_version.cpp | 5 | ||||
-rw-r--r-- | libqdutils/mdp_version.h | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/libqdutils/mdp_version.cpp b/libqdutils/mdp_version.cpp index e328d230..cac6b1de 100644 --- a/libqdutils/mdp_version.cpp +++ b/libqdutils/mdp_version.cpp @@ -130,5 +130,10 @@ bool MDPVersion::supportsBWC() { // BWC - Bandwidth Compression return (mFeatures & MDP_BWC_EN); } + +bool MDPVersion::is8x26() { + return mMdpRev == MDSS_MDP_HW_REV_101; +} + }; //namespace qdutils diff --git a/libqdutils/mdp_version.h b/libqdutils/mdp_version.h index c34c0a4b..f7b16fa7 100644 --- a/libqdutils/mdp_version.h +++ b/libqdutils/mdp_version.h @@ -53,6 +53,12 @@ enum mdp_version { MDSS_V5 = 500, }; +enum mdp_rev { + MDSS_MDP_HW_REV_100 = 0x10000000, + MDSS_MDP_HW_REV_101 = 0x10010000, //8x26 + MDSS_MDP_HW_REV_102 = 0x10020000, +}; + enum { MAX_DISPLAY_DIM = 2048, }; @@ -84,6 +90,7 @@ public: bool supportsDecimation(); uint32_t getMaxMDPDownscale(); bool supportsBWC(); + bool is8x26(); private: int mMDPVersion; char mPanelType; |