hwc: always enable BWC for primary
BWC is always enabled on primary for yuv use cases. This is a workaround for issues surrounding transitioning from non-BWC to BWC when HDMI/WFD is disconnected. Change-Id: I6952ef5572f925ce59cbb91c85609c1ad3172703
This commit is contained in:
@@ -1443,7 +1443,8 @@ int configureNonSplit(hwc_context_t *ctx, hwc_layer_1_t *layer,
|
||||
((transform & HWC_TRANSFORM_ROT_90) || downscale)) {
|
||||
*rot = ctx->mRotMgr->getNext();
|
||||
if(*rot == NULL) return -1;
|
||||
BwcPM::setBwc(ctx, crop, dst, transform, mdpFlags);
|
||||
if(!dpy)
|
||||
BwcPM::setBwc(ctx, crop, dst, transform, mdpFlags);
|
||||
//Configure rotator for pre-rotation
|
||||
if(configRotator(*rot, whf, crop, mdpFlags, orient, downscale) < 0) {
|
||||
ALOGE("%s: configRotator failed!", __FUNCTION__);
|
||||
@@ -1713,10 +1714,6 @@ void BwcPM::setBwc(hwc_context_t *ctx, const hwc_rect_t& crop,
|
||||
if((crop.right - crop.left) > qdutils::MAX_DISPLAY_DIM) {
|
||||
return;
|
||||
}
|
||||
//External connected
|
||||
if(ctx->mExtDisplay->isConnected()|| ctx->mVirtualDisplay->isConnected()) {
|
||||
return;
|
||||
}
|
||||
//Decimation necessary, cannot use BWC. H/W requirement.
|
||||
if(qdutils::MDPVersion::getInstance().supportsDecimation()) {
|
||||
int src_w = crop.right - crop.left;
|
||||
|
||||
Reference in New Issue
Block a user