diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-13 11:01:03 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-13 11:02:05 +0100 |
commit | 504b18b079e0a12a9d18b46418411805ef1d8377 (patch) | |
tree | 2bd07d46ef7806064f8466b2c85bbcca7d03745e | |
parent | 5840bfe285e3fd9dc550cbe5fa87437870c92038 (diff) | |
download | xorg-driver-xf86-video-intel-504b18b079e0a12a9d18b46418411805ef1d8377.tar.gz |
sna: Fix the assertions for the composite fb path
Having updated the offsets for the dst, we also need to update the
assertions.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_composite.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sna/sna_composite.c b/src/sna/sna_composite.c index 79fee4f0..085a6275 100644 --- a/src/sna/sna_composite.c +++ b/src/sna/sna_composite.c @@ -563,10 +563,10 @@ sna_composite_fb(CARD8 op, assert(box->y1 + sy >= 0); assert(box->y2 + sy <= src_pixmap->drawable.height); - assert(box->x1 + dst_x >= 0); - assert(box->x2 + dst_x <= dst_pixmap->drawable.width); - assert(box->y1 + dst_y >= 0); - assert(box->y2 + dst_y <= dst_pixmap->drawable.height); + assert(box->x1 + tx >= 0); + assert(box->x2 + tx <= dst_pixmap->drawable.width); + assert(box->y1 + ty >= 0); + assert(box->y2 + ty <= dst_pixmap->drawable.height); assert(box->x2 > box->x1 && box->y2 > box->y1); |