OSDN Git Service

Fix missing mapping for display_transform
authorHarish Krupo <harish.krupo.kps@intel.com>
Sun, 24 Jun 2018 11:21:21 +0000 (16:51 +0530)
committerKalyan Kondapally <kalyan.kondapally@intel.com>
Mon, 25 Jun 2018 16:58:35 +0000 (09:58 -0700)
commit491ed23d8a73ab53e07686b561cae435c0baa5ae
tree624d0911ec00f335e28826c3927b078995b707c1
parent45a97ec2c30a51fa6e2f3f256c7925486016e432
Fix missing mapping for display_transform

Currently the display transform set in the hwc_display.ini file
is according to the HWCRotation enums but the values expected in
Validate transfrom are 0,4,8,16. Instead of directly mapping 0..3
to 0,4,8,16, accept 0..3 as inputs as it simplifies the calculation
of the final plane rotation because 0..3 forms a circulant matrix
over modulo 4 arithmetic.

Jira: None
Tests: If the requested layer rotation if 0 degree and the display
       rotation set in ini file is 90 then the final rotation should
       be 90 degrees.

Signed-off-by: Harish Krupo <harish.krupo.kps@intel.com>
common/core/overlaylayer.cpp
hwc_display.ini