summaryrefslogtreecommitdiff
path: root/src/amd/vulkan/radv_private.h
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>2017-03-05 22:25:20 +0100
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>2017-03-06 00:07:51 +0100
commit682248db451fa164d964863339ca873a1f85aec9 (patch)
tree295872f36a6c21cac93fcbe95a4cbbe9ec26b091 /src/amd/vulkan/radv_private.h
parente3a01a5d1b019e7b00218ba526874f4c77ea8bee (diff)
radv: Cache command buffers in command pool.
So that we don't keep allocating BOs for the IBs and upload buffers. We run some risk of memory increase with e.g. a bimodal size distribution of command buffers, but I haven't noticed a significant increase with dota2 and talos. Signed-off-by: Bas Nieuwenhuizen <basni@google.com> Reviewed-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/amd/vulkan/radv_private.h')
-rw-r--r--src/amd/vulkan/radv_private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h
index 37549c554d..bc8e447d71 100644
--- a/src/amd/vulkan/radv_private.h
+++ b/src/amd/vulkan/radv_private.h
@@ -710,6 +710,7 @@ struct radv_cmd_state {
struct radv_cmd_pool {
VkAllocationCallbacks alloc;
struct list_head cmd_buffers;
+ struct list_head free_cmd_buffers;
uint32_t queue_family_index;
};