SDM: Normalize mapped FBT destination rect
There is a possibility on non-terminating decimal when FBT is
mapped to mixer width. Normalize the mapped rect to avoid non
integral destination rect.
Change-Id: Ida3cd25b492d6adda4cc3e7260d0c875fbcad33d
CRs-Fixed: 1084279
diff --git a/sdm/libs/core/display_base.cpp b/sdm/libs/core/display_base.cpp
index 025c583..fda2933 100644
--- a/sdm/libs/core/display_base.cpp
+++ b/sdm/libs/core/display_base.cpp
@@ -191,6 +191,7 @@
LayerRect out_rect = gpu_target_layer->dst_rect;
MapRect(src_domain, dst_domain, gpu_target_layer->dst_rect, &out_rect);
+ Normalize(1, 1, &out_rect);
auto gpu_target_layer_dst_xpixels = out_rect.right - out_rect.left;
auto gpu_target_layer_dst_ypixels = out_rect.bottom - out_rect.top;