From f03810fbdd41012422f6920c2026c49927bcb820 Mon Sep 17 00:00:00 2001 From: Marcin Slusarz Date: Sun, 9 Oct 2011 00:10:47 +0200 Subject: nv50,nvc0: avoid unnecessary flushes Relocations don't consume pushbuffer space, so there is no need to ensure there is any space in pushbuffer. --- src/gallium/drivers/nvc0/nvc0_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/drivers/nvc0/nvc0_context.c') diff --git a/src/gallium/drivers/nvc0/nvc0_context.c b/src/gallium/drivers/nvc0/nvc0_context.c index 8fa1675902e..d493d4b2a92 100644 --- a/src/gallium/drivers/nvc0/nvc0_context.c +++ b/src/gallium/drivers/nvc0/nvc0_context.c @@ -209,7 +209,7 @@ nvc0_bufctx_emit_relocs(struct nvc0_context *nvc0) n = nvc0->residents_size / sizeof(struct resident); n += NVC0_SCREEN_RESIDENT_BO_COUNT; - MARK_RING(nvc0->screen->base.channel, n, n); + MARK_RING(nvc0->screen->base.channel, 0, n); for (ctx = 0; ctx < NVC0_BUFCTX_COUNT; ++ctx) { array = &nvc0->residents[ctx]; -- cgit v1.2.3