[Nouveau] [PATCH 2/2] nv50: avoid excessive FIRE_RING
Maarten Maathuis
madman2003 at gmail.com
Mon Sep 14 11:29:22 PDT 2009
---
src/gallium/drivers/nv50/nv50_context.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/gallium/drivers/nv50/nv50_context.c b/src/gallium/drivers/nv50/nv50_context.c
index 935de8a..6b31da4 100644
--- a/src/gallium/drivers/nv50/nv50_context.c
+++ b/src/gallium/drivers/nv50/nv50_context.c
@@ -41,7 +41,8 @@ nv50_flush(struct pipe_context *pipe, unsigned flags,
BEGIN_RING(chan, eng2d, 0x0110, 1);
OUT_RING (chan, 0);
- FIRE_RING(chan);
+ if (flags & (PIPE_FLUSH_SWAPBUFFERS | PIPE_FLUSH_FRAME))
+ FIRE_RING(chan);
}
static void
--
1.6.4.2
More information about the Nouveau
mailing list