diff options
author | José Fonseca <[email protected]> | 2008-11-24 23:17:49 +0900 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-11-24 23:17:49 +0900 |
commit | 17849eafaacfbb2124d86f561a91b707317d3b31 (patch) | |
tree | bbf4fc4cfab20e63cd0a2695c854b3336f6fa5ad /src/gallium/auxiliary/pipebuffer/pb_bufmgr.h | |
parent | a6d866f72c88d48d2bcfb3e3c882fdb639b5a8ce (diff) |
pipebuffer: Ondemand buffer manager.
A variation of malloc buffers which get transferred to real graphics memory
when there is an attempt to validate them.
Diffstat (limited to 'src/gallium/auxiliary/pipebuffer/pb_bufmgr.h')
-rw-r--r-- | src/gallium/auxiliary/pipebuffer/pb_bufmgr.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/pipebuffer/pb_bufmgr.h b/src/gallium/auxiliary/pipebuffer/pb_bufmgr.h index 8fe2704708f..0a8264a9243 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_bufmgr.h +++ b/src/gallium/auxiliary/pipebuffer/pb_bufmgr.h @@ -183,6 +183,20 @@ pb_alt_manager_create(struct pb_manager *provider1, /** + * Ondemand buffer manager. + * + * Buffers are created in malloc'ed memory (fast and cached), and the constents + * is transfered to a buffer from the provider (typically in slow uncached + * memory) when there is an attempt to validate the buffer. + * + * Ideal for situations where one does not know before hand whether a given + * buffer will effectively be used by the hardware or not. + */ +struct pb_manager * +pb_ondemand_manager_create(struct pb_manager *provider); + + +/** * Debug buffer manager to detect buffer under- and overflows. * * Band size should be a multiple of the largest alignment |