OSDN Git Service

nouveau: add BEGIN_RING_NI
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Wed, 30 Dec 2009 20:32:40 +0000 (21:32 +0100)
committerMaarten Maathuis <madman2003@gmail.com>
Wed, 30 Dec 2009 21:11:55 +0000 (22:11 +0100)
nouveau/nouveau_pushbuf.h

index c7ac8c4..46982af 100644 (file)
@@ -111,6 +111,14 @@ BEGIN_RING(struct nouveau_channel *chan, struct nouveau_grobj *gr,
        chan->pushbuf->remaining -= (size + 1);
 }
 
+/* non-incrementing BEGIN_RING */
+static __inline__ void
+BEGIN_RING_NI(struct nouveau_channel *chan, struct nouveau_grobj *gr,
+          unsigned mthd, unsigned size)
+{
+       BEGIN_RING(chan, gr, mthd | 0x40000000, size);
+}
+
 static __inline__ void
 FIRE_RING(struct nouveau_channel *chan)
 {