@@ -2133,8 +2133,10 @@ static void atomic_pipe_commit(struct drm_device *dev,
intel_flip->old_cursor_bo = st->old.cursor_bo;
}
- if (st->old.fb) {
+ if (st->old.fb)
intel_flip->old_fb_id = st->old.fb->base.id;
+
+ if (st->fb_dirty && st->old.fb) {
intel_flip->old_bo = to_intel_framebuffer(st->old.fb)->obj;
mutex_lock(&dev->struct_mutex);
@@ -2177,8 +2179,10 @@ static void atomic_pipe_commit(struct drm_device *dev,
intel_plane->calc(plane, plane->fb, &st->coords);
- if (st->old.fb) {
+ if (st->old.fb)
intel_flip->old_fb_id = st->old.fb->base.id;
+
+ if (st->dirty && st->old.fb) {
intel_flip->old_bo = to_intel_framebuffer(st->old.fb)->obj;
mutex_lock(&dev->struct_mutex);