summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/nouveau/nv10_state_fb.c
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2010-03-18 14:19:10 +0100
committerFrancisco Jerez <currojerez@riseup.net>2010-03-18 15:02:37 +0100
commit6193c41bcd8c50d3f4fb38690061029866c37667 (patch)
treea5543c3dff3b3fb4096e0f17ccc093415dd8fc5e /src/mesa/drivers/dri/nouveau/nv10_state_fb.c
parentc944fb5ffe7cf16154d6395001f43a6c965cab1f (diff)
downloadexternal_mesa3d-6193c41bcd8c50d3f4fb38690061029866c37667.zip
external_mesa3d-6193c41bcd8c50d3f4fb38690061029866c37667.tar.gz
external_mesa3d-6193c41bcd8c50d3f4fb38690061029866c37667.tar.bz2
dri/nouveau: Avoid pushbuf flushes in the middle of LMA setup.
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nv10_state_fb.c')
-rw-r--r--src/mesa/drivers/dri/nouveau/nv10_state_fb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nv10_state_fb.c b/src/mesa/drivers/dri/nouveau/nv10_state_fb.c
index 6bd383e..f7c3d36 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);