From a6ea37da4bd02241ce3bf522b93dd7ff0757f959 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Sun, 20 Feb 2011 17:57:47 +0100 Subject: nvc0: improve userspace fencing Before, there were situations in which we never checked the fences for completion (some loading screens for example) and thus never released memory. --- src/gallium/drivers/nvc0/nvc0_vbo.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gallium/drivers/nvc0/nvc0_vbo.c') diff --git a/src/gallium/drivers/nvc0/nvc0_vbo.c b/src/gallium/drivers/nvc0/nvc0_vbo.c index 19fd85273c1..2db43d8704b 100644 --- a/src/gallium/drivers/nvc0/nvc0_vbo.c +++ b/src/gallium/drivers/nvc0/nvc0_vbo.c @@ -371,6 +371,8 @@ nvc0_draw_vbo_flush_notify(struct nouveau_channel *chan) { struct nvc0_context *nvc0 = chan->user_private; + nvc0_screen_fence_update(nvc0->screen, TRUE); + nvc0_bufctx_emit_relocs(nvc0); } @@ -398,7 +400,7 @@ nvc0_draw_arrays(struct nvc0_context *nvc0, prim |= NVC0_3D_VERTEX_BEGIN_GL_INSTANCE_NEXT; } - chan->flush_notify = NULL; + chan->flush_notify = nvc0_default_flush_notify; } static void @@ -568,7 +570,7 @@ nvc0_draw_elements(struct nvc0_context *nvc0, boolean shorten, } } - chan->flush_notify = NULL; + chan->flush_notify = nvc0_default_flush_notify; } void -- cgit v1.2.3