search for: nouveau_pushbuf_marker_emit

Displaying 7 results from an estimated 7 matches for "nouveau_pushbuf_marker_emit".

2009 Dec 04
3
[PATCH] nouveau: avoid running out of relocs
...@@ -113,8 +113,10 @@ so_emit(struct nouveau_channel *chan, struct nouveau_stateobj *so) unsigned nr, i; nr = so->cur - so->push; - if (pb->remaining < nr) - nouveau_pushbuf_flush(chan, nr); + /* This will flush if we need space. + * We don't actually need the marker. + */ + nouveau_pushbuf_marker_emit(chan, nr, so->cur_reloc); pb->remaining -= nr; memcpy(pb->cur, so->push, nr * 4); @@ -138,8 +140,10 @@ so_emit_reloc_markers(struct nouveau_channel *chan, struct nouveau_stateobj *so) return; i = so->cur_reloc << 1; - if (pb->remaining < i) - nouveau_pushbuf...
2010 Jan 29
2
[PATCH 1/2] libdrm/nouveau: new optimized libdrm pushbuffer ABI
...d; - req.nr_dwords = nvpb->size - nvpb->base.remaining; + req.nr_dwords = chan->cur - nvpb->pushbuf; req.dwords = (uint64_t)(unsigned long)nvpb->pushbuf; req.nr_buffers = nvpb->nr_buffers; req.buffers = (uint64_t)(unsigned long)nvpb->buffers; @@ -281,7 +277,7 @@ int nouveau_pushbuf_marker_emit(struct nouveau_channel *chan, unsigned wait_dwords, unsigned wait_relocs) { - struct nouveau_pushbuf_priv *nvpb = nouveau_pushbuf(chan->pushbuf); + struct nouveau_pushbuf_priv *nvpb = &nouveau_channel(chan)->pb; if (AVAIL_RING(chan) < wait_dwords) return nouveau_pushbuf...
2013 Apr 30
1
[Bug 64074] New: Mesalib Installation Error
...def __NOUVEAU_PUSHBUF_H__ #define __NOUVEAU_PUSHBUF_H__ #include <assert.h> #include <string.h> #include "nouveau/nouveau_channel.h" #include "nouveau_bo.h" #include "nouveau_grobj.h" int nouveau_pushbuf_flush(struct nouveau_channel *, unsigned min); int nouveau_pushbuf_marker_emit(struct nouveau_channel *chan, unsigned wait_dwords, unsigned wait_relocs); void 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, uint32_t flags, uin...
2009 Dec 13
3
[PATCH] nouveau: avoid running out of relocs (attempt 5)
...eobj *so) { struct nouveau_pushbuf *pb = chan->pushbuf; unsigned nr, i; + int ret = 0; nr = so->cur - so->push; - if (pb->remaining < nr) - nouveau_pushbuf_flush(chan, nr); + /* This will flush if we need space. + * We don't actually need the marker. + */ + if ((ret = nouveau_pushbuf_marker_emit(chan, nr, so->cur_reloc))) { + debug_printf("so_emit failed marker emit with error %d\n", ret); + return; + } pb->remaining -= nr; memcpy(pb->cur, so->push, nr * 4); for (i = 0; i < so->cur_reloc; i++) { struct nouveau_stateobj_reloc *r = &so->reloc[i...
2009 Dec 05
1
[PATCH] nouveau: avoid running out of relocs (attempt 4)
...eobj *so) { struct nouveau_pushbuf *pb = chan->pushbuf; unsigned nr, i; + int ret = 0; nr = so->cur - so->push; - if (pb->remaining < nr) - nouveau_pushbuf_flush(chan, nr); + /* This will flush if we need space. + * We don't actually need the marker. + */ + if ((ret = nouveau_pushbuf_marker_emit(chan, nr, so->cur_reloc))) { + debug_printf("so_emit failed marker emit with error %d\n", ret); + return; + } pb->remaining -= nr; memcpy(pb->cur, so->push, nr * 4); for (i = 0; i < so->cur_reloc; i++) { struct nouveau_stateobj_reloc *r = &so->reloc[i...
2013 Apr 29
2
[Bug 64042] New: Mesalib Installation Error
...buf_flush' nouveau_vieux_dri.so.tmp: undefined reference to `nouveau_bo_pending' nouveau_vieux_dri.so.tmp: undefined reference to `nouveau_pushbuf_marker_undo' nouveau_vieux_dri.so.tmp: undefined reference to `nouveau_grobj_autobind' nouveau_vieux_dri.so.tmp: undefined reference to `nouveau_pushbuf_marker_emit' nouveau_vieux_dri.so.tmp: undefined reference to `nouveau_bo_unmap' nouveau_vieux_dri.so.tmp: undefined reference to `nouveau_channel_free' nouveau_vieux_dri.so.tmp: undefined reference to `nouveau_grobj_free' nouveau_vieux_dri.so.tmp: undefined reference to `nouveau_device_open_ex...
2009 Dec 30
4
[PATCH 1/3] nv50: remove vtxbuf stateobject after a referenced vtxbuf is mapped
- This avoids problematic "reloc'ed while mapped" messages and some associated corruption as well. Signed-off-by: Maarten Maathuis <madman2003 at gmail.com> --- src/gallium/drivers/nouveau/nouveau_screen.c | 21 +++++++++++++++++++++ src/gallium/drivers/nouveau/nouveau_screen.h | 3 +++ src/gallium/drivers/nouveau/nouveau_stateobj.h | 13 +++++++++++++