exynos4: hwc: prefer FIMC in transformed contiguous cases

FIMC seems to be more reliable than FIMG.
TODO: use all four FIMCs

Change-Id: I1d34f8b3daae6dac609d141e78d3629433097cdb
This commit is contained in:
Simon Shields 2017-10-06 00:22:36 +11:00 committed by Shilin Victor
parent 5edee1cbfc
commit 20802225e8

View file

@ -208,7 +208,9 @@ static enum gsc_map_t::mode layer_requires_process(hwc_layer_1_t &layer)
switch(mode) {
case gsc_map_t::NONE:
if (is_scaled(layer) || is_transformed(layer) || !is_x_aligned(layer) || !is_contiguous(layer)) {
if ((is_scaled(layer) || is_transformed(layer)) && is_contiguous(layer)) { // TODO: can FIMC handle non-x aligned buffers?
mode = gsc_map_t::FIMC;
} else if (is_scaled(layer) || is_transformed(layer) || !is_x_aligned(layer) || !is_contiguous(layer)) {
ALOGV("%s: direct render -> fimg because is_scaled(%d) is_transformed(%d) is_x_aligned(%d)",
__FUNCTION__, is_scaled(layer), is_transformed(layer), is_x_aligned(layer));
mode = gsc_map_t::FIMG;