All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nouveau/gallium: use OUT_RINGp instead of several OUT_RINGs
@ 2011-02-22 17:53 Marcin Slusarz
  0 siblings, 0 replies; only message in thread
From: Marcin Slusarz @ 2011-02-22 17:53 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

It improves Warsow FPS by ~1.5%
---
 src/gallium/drivers/nv50/nv50_push.c |   18 +++---------------
 1 files changed, 3 insertions(+), 15 deletions(-)

diff --git a/src/gallium/drivers/nv50/nv50_push.c b/src/gallium/drivers/nv50/nv50_push.c
index 380f694..bb429f2 100644
--- a/src/gallium/drivers/nv50/nv50_push.c
+++ b/src/gallium/drivers/nv50/nv50_push.c
@@ -40,31 +40,19 @@ emit_b32_1(struct nouveau_channel *chan, void *data)
 static void
 emit_b32_2(struct nouveau_channel *chan, void *data)
 {
-   uint32_t *v = data;
-
-   OUT_RING(chan, v[0]);
-   OUT_RING(chan, v[1]);
+   OUT_RINGp(chan, data, 2);
 }
 
 static void
 emit_b32_3(struct nouveau_channel *chan, void *data)
 {
-   uint32_t *v = data;
-
-   OUT_RING(chan, v[0]);
-   OUT_RING(chan, v[1]);
-   OUT_RING(chan, v[2]);
+   OUT_RINGp(chan, data, 3);
 }
 
 static void
 emit_b32_4(struct nouveau_channel *chan, void *data)
 {
-   uint32_t *v = data;
-
-   OUT_RING(chan, v[0]);
-   OUT_RING(chan, v[1]);
-   OUT_RING(chan, v[2]);
-   OUT_RING(chan, v[3]);
+   OUT_RINGp(chan, data, 4);
 }
 
 static void
-- 
1.7.4.rc3

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-02-22 17:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-22 17:53 [PATCH] nouveau/gallium: use OUT_RINGp instead of several OUT_RINGs Marcin Slusarz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.