diff options
author | Jakob Bornecrantz <[email protected]> | 2010-01-17 14:18:26 +0000 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2010-01-17 16:44:39 +0000 |
commit | a4bbabf494a127dcffc51f9c4734f2ecf75b3961 (patch) | |
tree | 948e204645c7c2aee5352c37d074e186c391cb5e /src/gallium/drivers/softpipe/sp_winsys.h | |
parent | 0e4e2c57d1b5659ba4fce2f9077fb6d4c7fd18d5 (diff) |
softpipe: Move st/python's malloc winsys to softpipe
Users of softpipe can still specify thier own winsys
but now there is a default one also that uses malloc.
This allows the malloc winsys to be shared with other
users of softpipe.
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_winsys.h')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_winsys.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/gallium/drivers/softpipe/sp_winsys.h b/src/gallium/drivers/softpipe/sp_winsys.h index f203ded29ee..3042e01a05c 100644 --- a/src/gallium/drivers/softpipe/sp_winsys.h +++ b/src/gallium/drivers/softpipe/sp_winsys.h @@ -49,10 +49,17 @@ struct pipe_buffer; struct pipe_context *softpipe_create( struct pipe_screen * ); +/** + * Create a softpipe screen that uses the + * given winsys for allocating buffers. + */ +struct pipe_screen *softpipe_create_screen( struct pipe_winsys * ); -struct pipe_screen * -softpipe_create_screen(struct pipe_winsys *); - +/** + * Create a softpipe screen that uses + * regular malloc to create all its buffers. + */ +struct pipe_screen *softpipe_create_screen_malloc(void); boolean softpipe_get_texture_buffer( struct pipe_texture *texture, |