radv: Cache command buffers in command pool.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 5 Mar 2017 21:25:20 +0000 (22:25 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 5 Mar 2017 23:07:51 +0000 (00:07 +0100)
commit682248db451fa164d964863339ca873a1f85aec9
tree295872f36a6c21cac93fcbe95a4cbbe9ec26b091
parente3a01a5d1b019e7b00218ba526874f4c77ea8bee
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>
src/amd/vulkan/radv_cmd_buffer.c
src/amd/vulkan/radv_private.h