hwc: Remove non-wormhole usage from FB config for split display
Remove the non-wormhole calc usage from framebuffer config, since
it was intended for 2D blit which isnt used for split config.
Also the usage leads to incorrect behavior for split displays.
Change-Id: I262b2f7b04f400727bcd97677502239e1080c979
diff --git a/libhwcomposer/hwc_fbupdate.cpp b/libhwcomposer/hwc_fbupdate.cpp
index 7fb5b46..04a1716 100644
--- a/libhwcomposer/hwc_fbupdate.cpp
+++ b/libhwcomposer/hwc_fbupdate.cpp
@@ -283,15 +283,6 @@
hwc_rect_t sourceCrop = layer->sourceCrop;
hwc_rect_t displayFrame = layer->displayFrame;
- // Do not use getNonWormholeRegion() function to calculate the
- // sourceCrop during animation on external display.
- if(ctx->listStats[mDpy].isDisplayAnimating && mDpy) {
- sourceCrop = layer->displayFrame;
- displayFrame = sourceCrop;
- } else if(extOnlyLayerIndex == -1) {
- getNonWormholeRegion(list, sourceCrop);
- displayFrame = sourceCrop;
- }
const float xres = ctx->dpyAttr[mDpy].xres;
//Default even split for all displays with high res