summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mesa/pipe/p_winsys.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/pipe/p_winsys.h b/src/mesa/pipe/p_winsys.h
index 73ac61c33a..c80559c730 100644
--- a/src/mesa/pipe/p_winsys.h
+++ b/src/mesa/pipe/p_winsys.h
@@ -71,6 +71,12 @@ struct pipe_winsys
struct pipe_buffer_handle *(*buffer_create)(struct pipe_winsys *sws,
unsigned alignment );
+ /** Create a buffer that wraps user-space data */
+ struct pipe_buffer_handle *(*user_buffer_create)(struct pipe_winsys *sws,
+ void *ptr,
+ unsigned bytes);
+
+
/** flags is bitmask of PIPE_BUFFER_FLAG_READ/WRITE */
void *(*buffer_map)( struct pipe_winsys *sws,
struct pipe_buffer_handle *buf,