libhwcomposer: align rotator source buffers for tile format.
for tile format make the rotator source buffers aligned to 64 X 32. This avoids rotator hang during source fetch. Change-Id: I9e42788cc6f538b155c073028ce41bf48e1d9349 CRs-fixed: 473297
This commit is contained in:
@@ -960,10 +960,16 @@ void setMdpFlags(hwc_layer_1_t *layer,
|
||||
}
|
||||
}
|
||||
|
||||
int configRotator(Rotator *rot, const Whf& whf,
|
||||
int configRotator(Rotator *rot, Whf& whf,
|
||||
hwc_rect_t& crop, const eMdpFlags& mdpFlags,
|
||||
const eTransform& orient, const int& downscale) {
|
||||
|
||||
// Fix alignments for TILED format
|
||||
if(whf.format == MDP_Y_CRCB_H2V2_TILE ||
|
||||
whf.format == MDP_Y_CBCR_H2V2_TILE) {
|
||||
whf.w = utils::alignup(whf.w, 64);
|
||||
whf.h = utils::alignup(whf.h, 32);
|
||||
}
|
||||
rot->setSource(whf);
|
||||
|
||||
if (qdutils::MDPVersion::getInstance().getMDPVersion() >=
|
||||
|
||||
@@ -205,7 +205,7 @@ void setMdpFlags(hwc_layer_1_t *layer,
|
||||
ovutils::eMdpFlags &mdpFlags,
|
||||
int rotDownscale, int transform);
|
||||
|
||||
int configRotator(overlay::Rotator *rot, const ovutils::Whf& whf,
|
||||
int configRotator(overlay::Rotator *rot, ovutils::Whf& whf,
|
||||
hwc_rect_t& crop, const ovutils::eMdpFlags& mdpFlags,
|
||||
const ovutils::eTransform& orient, const int& downscale);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user