libhwc2.1: Fix the orientation issue in M2M and DPP scaling

Since the source and destination can be in different orientations, we
check the orientation of the source image before assigning its width and
height to the scaled image.

Bug: 176158392
Test: Play 1/8 and 16x scaling in landscape mode
Change-Id: I762797ffeb3e92ff6a0e7b1b70d3579ecd3312d3
1 file changed