From 9ed58f13159ca6f3081eb5eaf6d4d2e8513d6b03 Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Thu, 28 Nov 2013 16:23:15 -0500 Subject: [PATCH] wait for the buffer to be "done" --- src/gallium/drivers/nouveau/nv50/nv50_vbo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/nouveau/nv50/nv50_vbo.c b/src/gallium/drivers/nouveau/nv50/nv50_vbo.c index c6162b5..a53bd87 100644 --- a/src/gallium/drivers/nouveau/nv50/nv50_vbo.c +++ b/src/gallium/drivers/nouveau/nv50/nv50_vbo.c @@ -597,6 +597,8 @@ nv50_draw_elements(struct nv50_context *nv50, boolean shorten, assert(nouveau_resource_mapped_by_gpu(nv50->idxbuf.buffer)); + nouveau_fence_wait(buf->fence); + while (instance_count--) { BEGIN_NV04(push, NV50_3D(VERTEX_BEGIN_GL), 1); PUSH_DATA (push, prim); -- 1.8.3.2