summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2010-10-22 23:06:28 +0200
committerFrancisco Jerez <currojerez@riseup.net>2010-10-22 23:06:28 +0200
commitd0f2e16bc35660d01d3cd20a770cf8e613ab5323 (patch)
treeb8e6576aa4bed1db7ceb328ca148a2675ffec61e
parentc61e8d03161adcfbba4162172153814accf9e86b (diff)
downloadxorg-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.c2
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, &reg);
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(&reg, -draw->x, -draw->y);