mirror of
https://github.com/team-infusion-developers/android_hardware_samsung.git
synced 2024-11-06 21:55:41 +00:00
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:
parent
5edee1cbfc
commit
20802225e8
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue