liboverlay: Add support for MDSS Bandwidth Compression
- This adds support for Bandwidth Compression. - If MDSS supports BWC, then we set BWC flags to both Rotator(encode) and overlay(decode) Change-Id: I6f7800716a2ce2ab855f4c0b1a53cd96f7d06d74
This commit is contained in:
@@ -628,6 +628,12 @@ void setMdpFlags(hwc_layer_1_t *layer,
|
||||
if(transform & HWC_TRANSFORM_ROT_90) {
|
||||
ovutils::setMdpFlags(mdpFlags,
|
||||
ovutils::OV_MDP_SOURCE_ROTATED_90);
|
||||
// enable bandwidth compression only if src width < 2048
|
||||
if(qdutils::MDPVersion::getInstance().supportsBWC() &&
|
||||
hnd->width < qdutils::MAX_DISPLAY_DIM) {
|
||||
ovutils::setMdpFlags(mdpFlags,
|
||||
ovutils::OV_MDSS_MDP_BWC_EN);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user