From dfa35134f62eb721649305736a599008f59d9634 Mon Sep 17 00:00:00 2001 From: Simon Shields Date: Sun, 29 Oct 2017 22:44:06 +1100 Subject: [PATCH] exynos4: hwc: disable FIMG for now adds significant amounts of touch latency, and also causes the LCD to die :( Change-Id: Ie777d249d02def3863049528ab8437dcacc3faa1 --- exynos4/hal/libhwc/hwcomposer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/exynos4/hal/libhwc/hwcomposer.cpp b/exynos4/hal/libhwc/hwcomposer.cpp index c8e308e..05edff6 100644 --- a/exynos4/hal/libhwc/hwcomposer.cpp +++ b/exynos4/hal/libhwc/hwcomposer.cpp @@ -208,13 +208,13 @@ 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? - mode = gsc_map_t::FIMC; - } else if (is_scaled(layer) || is_transformed(layer) || !is_x_aligned(layer) || !is_contiguous(layer)) { + // FIMG adds noticable touch latency and also seems to break the panel. + // Disable it for now + /*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; - } + }*/ break; case gsc_map_t::FIMC: