diff options
author | Muralidhar Dixit <murali.dixit@ti.com> | 2012-04-11 15:20:26 +0530 |
---|---|---|
committer | Jason Simmons <jsimmons@google.com> | 2012-10-22 15:34:08 -0700 |
commit | 5a87355f6a7ed393d5d8f71bf7aac5f65b87c640 (patch) | |
tree | 01a07ab0f4d7449cba7d8f11151204b8b6b20348 | |
parent | 620a972bf780aff56d3a3c76e8f53ca8b0a3c17d (diff) | |
download | omap4-aah-5a87355f6a7ed393d5d8f71bf7aac5f65b87c640.tar.gz |
hwc: fix can_dss_render_all decision logic for docking mode
Currently can_dss_render_all() doesn't consider docking mode for
decision making. In case of rotation on HDMI, current logic expects all
layers to be NV12 which is not true if in docking mode.
Adding logic to consider NV12 to be the dockable layer.
Rebased from p-ics-mr1:
6a5358f hwc: fix can_dss_render_all decision logic for docking mode
Change-Id: Ib56c88ef45293eb87e4db9bc1faa956ea96a533e
Signed-off-by: Muralidhar Dixit <murali.dixit@ti.com>
Signed-off-by: Varadarajan, Charulatha <charu@ti.com>
(cherry picked from commit c739886ef430dbb231357038410fbde6990bb19f)
-rw-r--r-- | hwc/hwc.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1288,7 +1288,8 @@ static int can_dss_render_all(omap4_hwc_device_t *hwc_dev, struct counts *num) /* fits into TILER slot */ num->mem <= limits.tiler1d_slot_size && /* we cannot clone non-NV12 transformed layers */ - (!tform || num->NV12 == num->possible_overlay_layers) && + (!tform || (num->NV12 == num->possible_overlay_layers) || + (num->NV12 && ext->current.docking)) && /* HDMI cannot display BGR */ (num->BGR == 0 || (num->RGB == 0 && !on_tv) || !hwc_dev->flags_rgb_order); } |