summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/pipebuffer/pb_bufmgr.h
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2007-12-18 22:01:35 +0000
committerJosé Fonseca <[email protected]>2008-01-17 12:09:37 +0900
commit3eaf882a662f719845ead1017e28a121cbce86fb (patch)
tree520f12a693806d6be25df357e0c8883f78f7b75a /src/mesa/pipe/pipebuffer/pb_bufmgr.h
parent39b8303d4af97235b4daeba5a9ee0e12640e0be5 (diff)
gallium: Alternative mm_bufmgr_create_from_buffer constructor for mm pool managers.
Diffstat (limited to 'src/mesa/pipe/pipebuffer/pb_bufmgr.h')
-rw-r--r--src/mesa/pipe/pipebuffer/pb_bufmgr.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/mesa/pipe/pipebuffer/pb_bufmgr.h b/src/mesa/pipe/pipebuffer/pb_bufmgr.h
index 0e6c3a8d371..12e36323a83 100644
--- a/src/mesa/pipe/pipebuffer/pb_bufmgr.h
+++ b/src/mesa/pipe/pipebuffer/pb_bufmgr.h
@@ -65,7 +65,7 @@ struct buffer_manager
/* XXX: we will likely need more allocation flags */
struct pipe_buffer *
(*create_buffer)( struct buffer_manager *mgr,
- size_t size);
+ size_t size );
void
(*destroy)( struct buffer_manager *mgr );
@@ -96,6 +96,15 @@ struct buffer_manager *
mm_bufmgr_create(struct buffer_manager *provider,
size_t size, size_t align2);
+/**
+ * Same as mm_bufmgr_create.
+ *
+ * Buffer will be release when the manager is destroyed.
+ */
+struct buffer_manager *
+mm_bufmgr_create_from_buffer(struct pipe_buffer *buffer,
+ size_t size, size_t align2);
+
/**
* Fenced buffer manager.