summaryrefslogtreecommitdiffstats
path: root/hwc
diff options
context:
space:
mode:
authorGustavo Diaz Prado <a0273371@ti.com>2012-10-19 17:45:52 -0500
committerDaniel Levin <dendy@ti.com>2012-11-28 21:16:26 +0200
commit1a0bfc670ef124c2fdbc53cceaba9406ce15b67c (patch)
treed9df48ca933cc3b3abb61606057d1095e9afe824 /hwc
parentb44a5af01a48f410a6e54f8a5c74b914a2c7c94b (diff)
downloadhardware_ti_omap4-1a0bfc670ef124c2fdbc53cceaba9406ce15b67c.zip
hardware_ti_omap4-1a0bfc670ef124c2fdbc53cceaba9406ce15b67c.tar.gz
hardware_ti_omap4-1a0bfc670ef124c2fdbc53cceaba9406ce15b67c.tar.bz2
hwc: Compose with the blitter on hwc idle timeout when possible
Instead of using the GPU to compose all layers when the hwc idle timeout is reached, try first to blit everything if possible, otherwise fall back to use the GPU. This should save power on big resolution displays and allow the GC320 to compose video buffers with more visual quality than the GPU. Change-Id: Ib2a020b700ce5131cb2711e2abff197831a990eb Signed-off-by: Gustavo Diaz Prado <a0273371@ti.com>
Diffstat (limited to 'hwc')
-rw-r--r--hwc/hwc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hwc/hwc.c b/hwc/hwc.c
index e27ef00..57b86ce 100644
--- a/hwc/hwc.c
+++ b/hwc/hwc.c
@@ -1531,8 +1531,7 @@ static void blit_reset(omap4_hwc_device_t *hwc_dev)
static int blit_layers(omap4_hwc_device_t *hwc_dev, hwc_layer_list_t *list, int bufoff)
{
- /* Do not blit if this frame will be composed entirely by the GPU */
- if (!list || hwc_dev->force_sgx || hwc_dev->ext.mirror.enabled)
+ if (!list || hwc_dev->ext.mirror.enabled)
goto err_out;
int rgz_in_op;