mirror of
https://github.com/team-infusion-developers/android_hardware_samsung.git
synced 2024-11-06 21:55:41 +00:00
exynos4: hwc: disable FIMC scaled layers for now
seems to cause the panel to die Change-Id: I9005a1ee1fba6ef13e15572ffe5094e8fc5c6687
This commit is contained in:
parent
70f13df35c
commit
6c9141f69d
1 changed files with 10 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue