dri/nouveau: Avoid pushbuf flushes in the middle of LMA setup.
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 18 Mar 2010 13:19:10 +0000 (14:19 +0100)
committerFrancisco Jerez <currojerez@riseup.net>
Thu, 18 Mar 2010 14:02:37 +0000 (15:02 +0100)
src/mesa/drivers/dri/nouveau/nv10_state_fb.c

index 6bd383ebcd32e2dbf81a71c8455fa5528cb00da4..f7c3d36e1cfedb34292f2dce0ebba4ca8c8c7788 100644 (file)
@@ -71,6 +71,7 @@ setup_lma_buffer(GLcontext *ctx)
        nouveau_bo_markl(bctx, celsius, NV17TCL_LMA_DEPTH_BUFFER_OFFSET,
                         nfb->lma_bo, 0, NOUVEAU_BO_VRAM | NOUVEAU_BO_RDWR);
 
+       WAIT_RING(chan, 9);
        BEGIN_RING(chan, celsius, NV17TCL_LMA_DEPTH_WINDOW_X, 4);
        OUT_RINGf(chan, - 1792);
        OUT_RINGf(chan, - 2304 + fb->Height);