diff options
author | Thomas Hellstrom <[email protected]> | 2014-02-08 09:51:15 -0800 |
---|---|---|
committer | Brian Paul <[email protected]> | 2014-02-14 08:21:44 -0700 |
commit | 8af358d8bc9f7563cd76313b16d7b149197a4b2c (patch) | |
tree | c3c00d729c49ac2ec2c0bcc1b2f964328d78702d /src/gallium/auxiliary/pipebuffer/pb_bufmgr.h | |
parent | c9e9b1862b472b2671b8d3b339f9f7624a272073 (diff) |
gallium/pipebuffer: Add a cache buffer manager bypass mask
In some situations, it may be desirable to bypass the cache at buffer
creation but to insert the buffer in the cache at buffer destruction.
One such situation is where we already have a kernel representation of a
buffer that we want to use, but we also want to insert it in the cache when
it's freed up.
Signed-off-by: Thomas Hellstrom <[email protected]>
Reviewed-by: José Fonseca <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Cc: "10.1" <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/pipebuffer/pb_bufmgr.h')
-rw-r--r-- | src/gallium/auxiliary/pipebuffer/pb_bufmgr.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/pipebuffer/pb_bufmgr.h b/src/gallium/auxiliary/pipebuffer/pb_bufmgr.h index fe4c8c20071..3044ec881fd 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_bufmgr.h +++ b/src/gallium/auxiliary/pipebuffer/pb_bufmgr.h @@ -162,7 +162,8 @@ pb_slab_range_manager_create(struct pb_manager *provider, struct pb_manager * pb_cache_manager_create(struct pb_manager *provider, unsigned usecs, - unsigned size_factor); + unsigned size_factor, + unsigned bypass_usage); struct pb_fence_ops; |