diff options
author | Francisco Jerez <currojerez@riseup.net> | 2010-10-22 23:06:28 +0200 |
---|---|---|
committer | Francisco Jerez <currojerez@riseup.net> | 2010-10-22 23:06:28 +0200 |
commit | d0f2e16bc35660d01d3cd20a770cf8e613ab5323 (patch) | |
tree | b8e6576aa4bed1db7ceb328ca148a2675ffec61e | |
parent | c61e8d03161adcfbba4162172153814accf9e86b (diff) | |
download | xorg-driver-xf86-video-nouveau-d0f2e16bc35660d01d3cd20a770cf8e613ab5323.tar.gz |
dri2: Report damage on page-flipped drawables.
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
-rw-r--r-- | src/nouveau_dri2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nouveau_dri2.c b/src/nouveau_dri2.c index b006cfc..35146f2 100644 --- a/src/nouveau_dri2.c +++ b/src/nouveau_dri2.c @@ -224,6 +224,7 @@ nouveau_dri2_finish_swap(DrawablePtr draw, unsigned int frame, if (can_exchange(draw, dst_pix, src_pix)) { type = DRI2_EXCHANGE_COMPLETE; + DamageRegionAppend (draw, ®); if (DRI2CanFlip(draw)) { type = DRI2_FLIP_COMPLETE; @@ -235,6 +236,7 @@ nouveau_dri2_finish_swap(DrawablePtr draw, unsigned int frame, SWAP(s->dst->name, s->src->name); SWAP(nouveau_pixmap(dst_pix)->bo, nouveau_pixmap(src_pix)->bo); + DamageRegionProcessPending(draw); } else { type = DRI2_BLIT_COMPLETE; RegionTranslate(®, -draw->x, -draw->y); |