summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell King <rmk@arm.linux.org.uk>2015-05-27 22:08:37 +0100
committerRussell King <rmk@arm.linux.org.uk>2015-06-29 12:58:31 +0100
commit0ec6ab3a1debc44f8b62cc059dfc9f7b983061c9 (patch)
tree2f4ff3e07525fc726bc7ec455b3b019273318031
parentdfdf3374460469ec3231753ef5f278b86c6d1076 (diff)
etnaviv: adjust mask repeat check
Use the actual size of the region we will be compositing for the mask repeat check, rather than the requested size. This avoids cases where the area could be clipped smaller than the requested size, resulting in no repeat being needed. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
-rw-r--r--etnaviv/etnaviv_accel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/etnaviv/etnaviv_accel.c b/etnaviv/etnaviv_accel.c
index 35b3a12..6effc78 100644
--- a/etnaviv/etnaviv_accel.c
+++ b/etnaviv/etnaviv_accel.c
@@ -1593,7 +1593,7 @@ static int etnaviv_accel_composite_masked(CARD8 op, PicturePtr pSrc,
/* We don't handle mask repeats (yet) */
if (picture_needs_repeat(pMask, mask_offset.x, mask_offset.y,
- width, height))
+ clip_temp.x2, clip_temp.y2))
goto fallback;
mask_offset.x += pMask->pDrawable->x;