summaryrefslogtreecommitdiff
path: root/freedreno
diff options
context:
space:
mode:
authorRob Clark <robclark@freedesktop.org>2018-06-18 13:05:01 -0400
committerRob Clark <robclark@freedesktop.org>2018-06-18 13:07:17 -0400
commit22b3efbe9b6ba4d0d35dba64c27a8ebd920140d3 (patch)
tree9f7e7da7aeee12be044a8edc55e8f2cf034d649e /freedreno
parentc1f2d9b900e30119bcf6f88c0d11a0dd620fd060 (diff)
downloadlibdrm-22b3efbe9b6ba4d0d35dba64c27a8ebd920140d3.tar.gz
libdrm-22b3efbe9b6ba4d0d35dba64c27a8ebd920140d3.tar.bz2
libdrm-22b3efbe9b6ba4d0d35dba64c27a8ebd920140d3.zip
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>
Diffstat (limited to 'freedreno')
-rw-r--r--freedreno/freedreno_ringbuffer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/freedreno/freedreno_ringbuffer.h b/freedreno/freedreno_ringbuffer.h
index c501fbad..0a3d6f77 100644
--- a/freedreno/freedreno_ringbuffer.h
+++ b/freedreno/freedreno_ringbuffer.h
@@ -47,6 +47,11 @@ struct fd_ringbuffer {
const struct fd_ringbuffer_funcs *funcs;
uint32_t last_timestamp;
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,