diff options
author | Rob Clark <robclark@freedesktop.org> | 2013-12-21 12:11:40 -0500 |
---|---|---|
committer | Rob Clark <robclark@freedesktop.org> | 2014-01-07 11:33:54 -0500 |
commit | 9fa22a845bb40f602eaf073ac84b4af8384eaf3b (patch) | |
tree | 3fc948539c15e569f6d022a78b40ee12727c807b /freedreno/freedreno_ringbuffer.h | |
parent | b6caecfa904de0b4e35b93ed1212ae0089078b6d (diff) |
freedreno: allow IB to different ringbuffer
Allow IB to different ringbuffer in addition to just different part of
same ringbuffer. In particular, we need to add bo's to the parent (ie.
one passed to flush) bo table, since the bo table applies to all the
cmd buffers in submit ioctl.
Signed-off-by: Rob Clark <robclark@freedesktop.org>
Diffstat (limited to 'freedreno/freedreno_ringbuffer.h')
-rw-r--r-- | freedreno/freedreno_ringbuffer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/freedreno/freedreno_ringbuffer.h b/freedreno/freedreno_ringbuffer.h index 4c99ea81..a5e1d032 100644 --- a/freedreno/freedreno_ringbuffer.h +++ b/freedreno/freedreno_ringbuffer.h @@ -46,11 +46,14 @@ struct fd_ringbuffer { struct fd_pipe *pipe; struct fd_ringbuffer_funcs *funcs; uint32_t last_timestamp; + struct fd_ringbuffer *parent; }; struct fd_ringbuffer * fd_ringbuffer_new(struct fd_pipe *pipe, uint32_t size); void fd_ringbuffer_del(struct fd_ringbuffer *ring); +void fd_ringbuffer_set_parent(struct fd_ringbuffer *ring, + struct fd_ringbuffer *parent); void fd_ringbuffer_reset(struct fd_ringbuffer *ring); int fd_ringbuffer_flush(struct fd_ringbuffer *ring); uint32_t fd_ringbuffer_timestamp(struct fd_ringbuffer *ring); |