freedreno: add user ptr to fd_ringbuffer

Something for users of fd_ringbuffer to use as they see fit.  (For now,
just so mesa can add some debugging state.)

Signed-off-by: Rob Clark <robclark@freedesktop.org>
main
Rob Clark 2018-06-18 13:05:01 -04:00
parent c1f2d9b900
commit 22b3efbe9b
1 changed files with 5 additions and 0 deletions

View File

@ -47,6 +47,11 @@ struct fd_ringbuffer {
const struct fd_ringbuffer_funcs *funcs; const struct fd_ringbuffer_funcs *funcs;
uint32_t last_timestamp; uint32_t last_timestamp;
struct fd_ringbuffer *parent; struct fd_ringbuffer *parent;
/* for users of fd_ringbuffer to store their own private per-
* ringbuffer data
*/
void *user;
}; };
struct fd_ringbuffer * fd_ringbuffer_new(struct fd_pipe *pipe, struct fd_ringbuffer * fd_ringbuffer_new(struct fd_pipe *pipe,