exynos4: hwc: disable FIMC scaled layers for now

seems to cause the panel to die

Change-Id: I9005a1ee1fba6ef13e15572ffe5094e8fc5c6687
This commit is contained in:
Simon Shields 2017-10-28 00:15:03 +11:00 committed by Shilin Victor
parent 70f13df35c
commit 6c9141f69d
1 changed files with 10 additions and 1 deletions

View File

@ -208,7 +208,7 @@ 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_contiguous(layer)) { // TODO: can FIMC handle non-x aligned buffers?
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)",
@ -217,6 +217,15 @@ static enum gsc_map_t::mode layer_requires_process(hwc_layer_1_t &layer)
}
break;
case gsc_map_t::FIMC:
if (is_scaled(layer)) {
// FIMC _should_ be able to do scaling
// but it doesn't seem to work well.
// Disable it for now.
mode = gsc_map_t::NONE;
}
break;
default:
break;
}