[PATCH] nv50: add BGN_RELOC
root (none)
root at P801.
Sun Mar 14 06:36:23 PDT 2010
---
nouveau/nouveau_pushbuf.h | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/nouveau/nouveau_pushbuf.h b/nouveau/nouveau_pushbuf.h
index 52d13a0..818b713 100644
--- a/nouveau/nouveau_pushbuf.h
+++ b/nouveau/nouveau_pushbuf.h
@@ -197,4 +197,13 @@ OUT_RELOCh(struct nouveau_channel *chan, struct nouveau_bo *bo,
return OUT_RELOC(chan, bo, delta, flags | NOUVEAU_BO_HIGH, 0, 0);
}
+static __inline__ int
+BGN_RELOC(struct nouveau_channel *chan, struct nouveau_bo *bo,
+ struct nouveau_grobj *gr, unsigned mthd, unsigned size,
+ unsigned flags)
+{
+ OUT_RELOC(chan, bo, (size << 18) | (gr->subc << 13) | mthd,
+ flags, 0, 0);
+}
+
#endif
--
1.6.4.4
--------------030502090800040303050904
Content-Type: text/plain;
name="0001-nv50-use-BGN_RELOC.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="0001-nv50-use-BGN_RELOC.patch"
More information about the Nouveau
mailing list