overlay: Update rotator buffer size calculation for BWC.
For BWC, update the rotator buffer size calculation in display HAL
as MDSS driver needs to allocate for both chroma (U & V) planes.
Change-Id: I140be2b0a38d6cd66e2ee1b3c9a8bb06efd96bfe
diff --git a/liboverlay/overlayMdssRot.cpp b/liboverlay/overlayMdssRot.cpp
index 30d7ccd..b8a2417 100644
--- a/liboverlay/overlayMdssRot.cpp
+++ b/liboverlay/overlayMdssRot.cpp
@@ -279,7 +279,7 @@
int aHeight = ovutils::align(mRotInfo.src_rect.h, 4);
int rau_cnt = aWidth/64;
int stride0 = (64 * 4 * rau_cnt) + rau_cnt/8;
- int stride1 = (64 * 2 * rau_cnt) + rau_cnt/8;
+ int stride1 = ((64 * 2 * rau_cnt) + rau_cnt/8) * 2;
int stride0_off = (aHeight/4);
int stride1_off = (aHeight/2);