summaryrefslogtreecommitdiffstats
path: root/hwc
diff options
context:
space:
mode:
authorGustavo Diaz Prado <a0273371@ti.com>2012-10-03 11:11:03 -0500
committerDaniel Levin <dendy@ti.com>2012-11-28 21:16:25 +0200
commite763b8d3be62f5fb3777af371866e7fe1d11ee1c (patch)
tree5b1b6c759528d95fd9fda2e6fb452e72a6758ab7 /hwc
parent1ced496e34e8c897eddb7b1f6198dce4bdef198b (diff)
downloadhardware_ti_omap4-e763b8d3be62f5fb3777af371866e7fe1d11ee1c.zip
hardware_ti_omap4-e763b8d3be62f5fb3777af371866e7fe1d11ee1c.tar.gz
hardware_ti_omap4-e763b8d3be62f5fb3777af371866e7fe1d11ee1c.tar.bz2
hwc: Fix for losing first blit buffer handle
There are certain situations where the regionizer decides it can handle all layers passed to it and no blits are generated as a result. This is caused by receiving more than two times the same geometry in the prepare, which makes the regionizer to not generate dirty regions (hence no blits). When this situation happens we are losing the first blit handle by assigning it to NULL incorrectly. This patch fixes the issue by checking if the sgx will be used for composition instead of checking if we have no blits. Change-Id: I68e87c386c98a8ca5047e1723c6c43db7c143447 Signed-off-by: Gustavo Diaz Prado <a0273371@ti.com>
Diffstat (limited to 'hwc')
-rw-r--r--hwc/hwc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hwc/hwc.c b/hwc/hwc.c
index 7e2e544..4e67a70 100644
--- a/hwc/hwc.c
+++ b/hwc/hwc.c
@@ -1848,7 +1848,7 @@ static int omap4_hwc_prepare(struct hwc_composer_device *dev, hwc_layer_list_t*
* This is needed because if we blit all we would lose the handle of
* the first layer
*/
- if (hwc_dev->blit_num == 0) {
+ if (hwc_dev->use_sgx) {
hwc_dev->buffers[0] = NULL;
}
omap4_hwc_setup_layer_base(&dsscomp->ovls[0].cfg, fb_z,