Skip to contentSkip to conversation

nouveau: remove unused OUT_RELOC2 and OUT_RELOCr

PATCH In review Marcin Slusarz 2 participants 2 messages Jan 9, 2011 – Jan 12, 2011 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 nouveau: remove unused OUT_RELOC2 and OUT_RELOCr

---
 nouveau/nouveau_pushbuf.h |   17 -----------------
 1 files changed, 0 insertions(+), 17 deletions(-)
nouveau/nouveau_pushbuf.h +0 -17
index 2a98789..70d0f28 100644
@@ -109,15 +109,6 @@ OUT_RELOC(struct nouveau_channel *chan, struct nouveau_bo *bo,
 					  data, 0, flags, vor, tor);
 }
 
-static __inline__ int
-OUT_RELOC2(struct nouveau_channel *chan, struct nouveau_bo *bo,
-	   unsigned data, unsigned data2, unsigned flags,
-	   unsigned vor, unsigned tor)
-{
-	return nouveau_pushbuf_emit_reloc(chan, chan->cur++, bo,
-					  data, data2, flags, vor, tor);
-}
-
 /* Raw data + flags depending on FB/TT buffer */
 static __inline__ int
 OUT_RELOCd(struct nouveau_channel *chan, struct nouveau_bo *bo,
@@ -143,14 +134,6 @@ OUT_RELOCl(struct nouveau_channel *chan, struct nouveau_bo *bo,
 	return OUT_RELOC(chan, bo, delta, flags | NOUVEAU_BO_LOW, 0, 0);
 }
 
-/* Low 32-bits of offset + GPU linear access range info */
-static __inline__ int
-OUT_RELOCr(struct nouveau_channel *chan, struct nouveau_bo *bo,
-	   unsigned delta, unsigned size, unsigned flags)
-{
-	return OUT_RELOC2(chan, bo, delta, size, flags | NOUVEAU_BO_LOW, 0, 0);
-}
-
 /* High 32-bits of offset */
 static __inline__ int
 OUT_RELOCh(struct nouveau_channel *chan, struct nouveau_bo *bo,
Signature · 1 line
1.7.3.3
#2 lore raw
In reply to a message not in the archive
Quoted 29 lines · Marcin Slusarz
---
 nouveau/nouveau_pushbuf.h |   17 -----------------
 1 files changed, 0 insertions(+), 17 deletions(-)
nouveau/nouveau_pushbuf.h +0 -10
index 2a98789..70d0f28 100644
@@ -109,15 +109,6 @@ OUT_RELOC(struct nouveau_channel *chan, struct nouveau_bo *bo,
 					  data, 0, flags, vor, tor);
 }
 
-static __inline__ int
-OUT_RELOC2(struct nouveau_channel *chan, struct nouveau_bo *bo,
-	   unsigned data, unsigned data2, unsigned flags,
-	   unsigned vor, unsigned tor)
-{
-	return nouveau_pushbuf_emit_reloc(chan, chan->cur++, bo,
-					  data, data2, flags, vor, tor);
-}
-
 /* Raw data + flags depending on FB/TT buffer */
 static __inline__ int
 OUT_RELOCd(struct nouveau_channel *chan, struct nouveau_bo *bo,
@@ -143,14 +134,6 @@ OUT_RELOCl(struct nouveau_channel *chan, struct nouveau_bo *bo,
 	return OUT_RELOC(chan, bo, delta, flags | NOUVEAU_BO_LOW, 0, 0);
 }
 
-/* Low 32-bits of offset + GPU linear access range info */

nouveau/nouveau_pushbuf.h OUT_RELOCl(struct nouveau_channel *chan, struct nouveau_bo *bo, · line 139

Quoted 10 lines
nouveau/nouveau_pushbuf.h +0 -7
-static __inline__ int
-OUT_RELOCr(struct nouveau_channel *chan, struct nouveau_bo *bo,
-	   unsigned delta, unsigned size, unsigned flags)
-{
-	return OUT_RELOC2(chan, bo, delta, size, flags | NOUVEAU_BO_LOW, 0, 0);
-}
-
 /* High 32-bits of offset */
 static __inline__ int
 OUT_RELOCh(struct nouveau_channel *chan, struct nouveau_bo *bo,

This patch series looks like a good clean-up. Ben, do you have any additional changes in mind for the libdrm API? (If you do they could go in together to avoid annoying users more often than necessary)

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau