From: Francisco Jerez Date: Thu, 18 Mar 2010 13:19:10 +0000 (+0100) Subject: dri/nouveau: Avoid pushbuf flushes in the middle of LMA setup. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6193c41bcd8c50d3f4fb38690061029866c37667;p=mesa.git dri/nouveau: Avoid pushbuf flushes in the middle of LMA setup. --- diff --git a/src/mesa/drivers/dri/nouveau/nv10_state_fb.c b/src/mesa/drivers/dri/nouveau/nv10_state_fb.c index 6bd383ebcd3..f7c3d36e1cf 100644 --- a/src/mesa/drivers/dri/nouveau/nv10_state_fb.c +++ b/src/mesa/drivers/dri/nouveau/nv10_state_fb.c @@ -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);