exynos4: hwc: disable FIMG for now

adds significant amounts of touch latency, and also causes the LCD to
die :(

Change-Id: Ie777d249d02def3863049528ab8437dcacc3faa1
This commit is contained in:
Simon Shields 2017-10-29 22:44:06 +11:00 committed by Shilin Victor
parent 60d6c48cca
commit dfa35134f6

View file

@ -208,13 +208,13 @@ static enum gsc_map_t::mode layer_requires_process(hwc_layer_1_t &layer)
switch(mode) { switch(mode) {
case gsc_map_t::NONE: case gsc_map_t::NONE:
if (!is_scaled(layer) && is_transformed(layer) && is_contiguous(layer)) { // TODO: can FIMC handle non-x aligned buffers? // FIMG adds noticable touch latency and also seems to break the panel.
mode = gsc_map_t::FIMC; // Disable it for now
} else if (is_scaled(layer) || is_transformed(layer) || !is_x_aligned(layer) || !is_contiguous(layer)) { /*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)", 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)); __FUNCTION__, is_scaled(layer), is_transformed(layer), is_x_aligned(layer));
mode = gsc_map_t::FIMG; mode = gsc_map_t::FIMG;
} }*/
break; break;
case gsc_map_t::FIMC: case gsc_map_t::FIMC: