dri/nouveau: Emit dirty states on nouveau_validate_framebuffer.
authorFrancisco Jerez <currojerez@riseup.net>
Mon, 22 Mar 2010 13:15:52 +0000 (14:15 +0100)
committerFrancisco Jerez <currojerez@riseup.net>
Mon, 22 Mar 2010 17:41:22 +0000 (18:41 +0100)
Fixes broken intermediate frames when a window is being resized
(regression caused by 878eef8c4).

src/mesa/drivers/dri/nouveau/nouveau_context.c

index be57d48b8ddf5f3cc653ad172d76533c8d7afe77..deb7b5b1d0df81d71e55c3349982539653a86019 100644 (file)
@@ -337,6 +337,8 @@ nouveau_validate_framebuffer(GLcontext *ctx)
                update_framebuffer(dri_ctx, dri_read,
                                   &dri_ctx->dri2.read_stamp);
 
-       if (nouveau_next_dirty_state(ctx) >= 0)
+       if (nouveau_next_dirty_state(ctx) >= 0) {
+               nouveau_state_emit(ctx);
                FIRE_RING(context_chan(ctx));
+       }
 }