Merge "hwc: Add msm8x09 version checks in HAL."
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
4850bd8a11
@@ -352,7 +352,8 @@ bool CopyBit::prepare(hwc_context_t *ctx, hwc_display_contents_1_t *list,
|
||||
}
|
||||
|
||||
//Allocate render buffers if they're not allocated
|
||||
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) &&
|
||||
(useCopybitForYUV || useCopybitForRGB)) {
|
||||
int ret = allocRenderBuffers(mAlignedWidth,
|
||||
mAlignedHeight,
|
||||
@@ -378,7 +379,8 @@ bool CopyBit::prepare(hwc_context_t *ctx, hwc_display_contents_1_t *list,
|
||||
for (int i = ctx->listStats[dpy].numAppLayers-1; i >= 0 ; i--) {
|
||||
layerProp[i].mFlags |= HWC_COPYBIT;
|
||||
#ifdef QCOM_BSP
|
||||
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)
|
||||
list->hwLayers[i].compositionType = HWC_BLIT;
|
||||
else
|
||||
#endif
|
||||
@@ -499,7 +501,8 @@ bool CopyBit::draw(hwc_context_t *ctx, hwc_display_contents_1_t *list,
|
||||
return true;
|
||||
}
|
||||
//render buffer
|
||||
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) {
|
||||
last = (uint32_t)list->numHwLayers - 1;
|
||||
renderBuffer = (private_handle_t *)list->hwLayers[last].handle;
|
||||
} else {
|
||||
@@ -574,7 +577,8 @@ bool CopyBit::draw(hwc_context_t *ctx, hwc_display_contents_1_t *list,
|
||||
copybit_device_t *copybit = getCopyBitDevice();
|
||||
// Async mode
|
||||
copybit->flush_get_fence(copybit, fd);
|
||||
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) &&
|
||||
list->hwLayers[last].acquireFenceFd >= 0) {
|
||||
close(list->hwLayers[last].acquireFenceFd);
|
||||
list->hwLayers[last].acquireFenceFd = -1;
|
||||
|
||||
Reference in New Issue
Block a user