hwc: Add msm8x09 version checks in HAL.

Add version checks for msm8x09 in hwc,copybit
and overlay.

Change-Id: Ia8b00f0ccd5f0495ab120b4c3e188caa5dbfa79c
This commit is contained in:
Ramakant Singh
2014-10-07 18:06:56 +05:30
parent 9670a8906c
commit b4106a121c
3 changed files with 15 additions and 8 deletions

View File

@@ -254,8 +254,10 @@ void initContext(hwc_context_t *ctx)
// Only MDP copybit is used
if ((compositionType & (qdutils::COMPOSITION_TYPE_DYN |
qdutils::COMPOSITION_TYPE_MDP)) &&
((qdutils::MDPVersion::getInstance().getMDPVersion() ==
qdutils::MDP_V3_0_4) ||
(qdutils::MDPVersion::getInstance().getMDPVersion() ==
qdutils::MDP_V3_0_4)) {
qdutils::MDP_V3_0_5))) {
ctx->mCopyBit[HWC_DISPLAY_PRIMARY] = new CopyBit(ctx,
HWC_DISPLAY_PRIMARY);
}
@@ -2160,7 +2162,8 @@ bool canUseRotator(hwc_context_t *ctx, int dpy) {
if(dpy == HWC_DISPLAY_PRIMARY)
return false;
}
if(ctx->mMDP.version == qdutils::MDP_V3_0_4)
if((ctx->mMDP.version == qdutils::MDP_V3_0_4)
||(ctx->mMDP.version == qdutils::MDP_V3_0_5))
return false;
return true;
}