diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-06-28 12:34:36 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-06-28 12:40:59 +0100 |
commit | c3e2c1332d8d5a3944df99cc11aa66c586add3e8 (patch) | |
tree | 42f0b0986f0245fdaa20143e0c320c339268d3b7 /src/sna | |
parent | 47e6bfa4f40cf7efcfe7eee24d2512d737fd7e89 (diff) |
sna: Fix the application of the crtc offset for posting damage
The damage boxes are in framebuffer (source) space, so we need to apply
the offset for the boxes in crtc (destination) space.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna')
-rw-r--r-- | src/sna/sna_display.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index 648d5c53..565e98c5 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -2700,8 +2700,8 @@ sna_crtc_redisplay(xf86CrtcPtr crtc, RegionPtr region) */ if (sna->render.copy_boxes(sna, GXcopy, - sna->front, sna_pixmap_get_bo(sna->front), tx, ty, - &tmp, sna_crtc->bo, 0, 0, + sna->front, sna_pixmap_get_bo(sna->front), 0, 0, + &tmp, sna_crtc->bo, -tx, -ty, REGION_RECTS(region), REGION_NUM_RECTS(region))) return; } |