nouveau: remove unused data2 argument from reloc functions
PATCH 3/3 nouveau: remove unused data2 argument from reloc functions
Remove data2 arg from nouveau_pushbuf_emit_reloc and nouveau_reloc_emit.
Note: it changes the API & ABI of libdrm_nouveau.
--- nouveau/nouveau_pushbuf.c | 4 ++-- nouveau/nouveau_pushbuf.h | 4 ++-- nouveau/nouveau_reloc.c | 2 +- nouveau/nouveau_reloc.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-)
nouveau/nouveau_pushbuf.c +2 -2
@@ -326,7 +326,7 @@ nouveau_pushbuf_marker_undo(struct nouveau_channel *chan)int nouveau_pushbuf_emit_reloc (struct nouveau_channel *chan,void *ptr, -struct nouveau_bo *bo,uint32_t data,uint32_t data2, +struct nouveau_bo *bo,uint32_t data,uint32_t flags,uint32_t vor,uint32_t tor) {struct nouveau_pushbuf_priv *nvpb = &nouveau_channel (chan)->pb;
@@ -334,7 +334,7 @@ nouveau_pushbuf_emit_reloc(struct nouveau_channel *chan, void *ptr, ret =nouveau_reloc_emit (chan, nvpb->buffer[nvpb->current], (char *)ptr - (char *)nvpb->pushbuf, ptr, - bo, data, data2, flags, vor, tor); + bo, data, flags, vor, tor);if (ret)return ret;
nouveau/nouveau_pushbuf.h +2 -2
@@ -41,7 +41,7 @@ nouveau_pushbuf_marker_undo(struct nouveau_channel *chan);int nouveau_pushbuf_emit_reloc (struct nouveau_channel *,void *ptr, -struct nouveau_bo *,uint32_t data,uint32_t data2, +struct nouveau_bo *,uint32_t data,uint32_t flags,uint32_t vor,uint32_t tor);int
@@ -106,7 +106,7 @@ OUT_RELOC(struct nouveau_channel *chan, struct nouveau_bo *bo, unsigned data, unsigned flags, unsigned vor, unsigned tor) { return nouveau_pushbuf_emit_reloc(chan, chan->cur++, bo, - data, 0, flags, vor, tor); +data ,flags ,vor ,tor ); }/* Raw data + flags depending on FB/TT buffer */
nouveau/nouveau_reloc.c +1 -1
@@ -54,7 +54,7 @@ nouveau_reloc_calc(struct drm_nouveau_gem_pushbuf_bo *pbbo,int nouveau_reloc_emit (struct nouveau_channel *chan,struct nouveau_bo *reloc_bo,uint32_t reloc_offset,uint32_t *reloc_ptr, -struct nouveau_bo *bo,uint32_t data,uint32_t data2, +struct nouveau_bo *bo,uint32_t data,uint32_t flags,uint32_t vor,uint32_t tor) {struct nouveau_pushbuf_priv *nvpb = &nouveau_channel (chan)->pb;
nouveau/nouveau_reloc.h +1 -1
@@ -26,7 +26,7 @@int nouveau_reloc_emit (struct nouveau_channel *chan,struct nouveau_bo *reloc_bo,uint32_t reloc_offset,uint32_t *reloc_ptr, -struct nouveau_bo *bo,uint32_t data,uint32_t data2, +struct nouveau_bo *bo,uint32_t data,uint32_t flags,uint32_t vor,uint32_t tor);#endif
Signature · 1 line
1.7.3.3