summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Diaz Prado <a0273371@ti.com>2012-06-18 17:22:45 -0500
committerJason Simmons <jsimmons@google.com>2012-10-22 15:39:42 -0700
commit8438ab1da64c136916ecf1dfe07869cfa688c8be (patch)
tree1e99df2e4d4b1758a76630a514f571c7e0d49e83
parentcec3d5b8ffff42c2dc5746575172e976feca3450 (diff)
downloadomap4-aah-8438ab1da64c136916ecf1dfe07869cfa688c8be.tar.gz
hwc: regionizer: Batch flags fixes
+ Removed BVBATCH_DST since the destination parameters (buffdesc and geometry) are not changing while performing blending within a batch. + Removed BVBATCH_SRC2RECT_SIZE, the rectangle size never changes while constructing blits within a horizontal subregion. + Added BVBATCH_SRC1RECT_ORIGIN, it's highly possible the src1 origin changes from a previous blit within the batch, a good example is the volume pop blended on top of the widget and wallpaper layers in the Android homescreen. This change doesn't address batch flags while scaling, those will be revisited later when the GC driver supports it. Rebased from p-ics-mr1 (also cleaned up commit msg): 93b69ce hwc: regionizer: Batch flags fixes Change-Id: I9b85dce832b391e347aab93800e0b22e67072227 Signed-off-by: Gustavo Diaz Prado <a0273371@ti.com> (cherry picked from commit 29136475929f69250818d96cf106d28ed4e1cd80)
-rw-r--r--hwc/rgz_2d.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/hwc/rgz_2d.c b/hwc/rgz_2d.c
index 3814118..7717599 100644
--- a/hwc/rgz_2d.c
+++ b/hwc/rgz_2d.c
@@ -1279,10 +1279,9 @@ static int rgz_hwc_subregion_blit(blit_hregion_t *hregion, int sidx, rgz_out_par
if (first) {
first = 0;
- batchflags |= BVBATCH_DST | BVBATCH_SRC2 | \
- BVBATCH_SRC2RECT_ORIGIN | BVBATCH_SRC2RECT_SIZE;
+ batchflags |= BVBATCH_SRC2 | BVBATCH_SRC2RECT_ORIGIN;
}
- batchflags |= BVBATCH_SRC1;
+ batchflags |= BVBATCH_SRC1 | BVBATCH_SRC1RECT_ORIGIN;
if (rgz_hwc_scaled(layer))
batchflags |= BVBATCH_SRC1RECT_ORIGIN | BVBATCH_SRC1RECT_SIZE;
rgz_batch_entry(e, BVFLAG_BATCH_CONTINUE, batchflags);