summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2013-01-07 14:04:40 +1000
committerDave Airlie <airlied@redhat.com>2013-01-07 14:06:13 +1000
commit00834273e22f7234a3755269100ea3f10b521e35 (patch)
tree610d2a9a64dd9b3c7802cbc15e5da4373bc9f854
parent389b8a8dd91a48dee524eac96e60813c507f1a82 (diff)
nouveau: fix dirty redisplay damage handling
This processes the damage in the correct order. Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--src/nv_driver.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nv_driver.c b/src/nv_driver.c
index de09f53..f14c847 100644
--- a/src/nv_driver.c
+++ b/src/nv_driver.c
@@ -454,9 +454,10 @@ redisplay_dirty(ScreenPtr screen, PixmapDirtyUpdatePtr dirty)
PixmapRegionInit(&pixregion, dirty->slave_dst->master_pixmap);
+ DamageRegionAppend(&dirty->slave_dst->drawable, &pixregion);
PixmapSyncDirtyHelper(dirty, &pixregion);
- DamageRegionAppend(&dirty->slave_dst->drawable, &pixregion);
+ DamageRegionProcessPending(&dirty->slave_dst->drawable);
RegionUninit(&pixregion);
}