summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Slusarz <marcin.slusarz@gmail.com>2009-12-30 21:32:40 +0100
committerMaarten Maathuis <madman2003@gmail.com>2009-12-30 22:11:55 +0100
commitc5c503b519777fb9ebbaa22681a1ed81717c1d71 (patch)
tree2acd82f0b4ad01df4f749093f3718819d1793fa4
parentcd2e4ba9aac65d10cf790990a8b86feed1cdd774 (diff)
nouveau: add BEGIN_RING_NI
-rw-r--r--nouveau/nouveau_pushbuf.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/nouveau/nouveau_pushbuf.h b/nouveau/nouveau_pushbuf.h
index c7ac8c45..46982afa 100644
--- a/nouveau/nouveau_pushbuf.h
+++ b/nouveau/nouveau_pushbuf.h
@@ -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)
{