From 8a8630486b69b3ad306763ca14eda5f63bbf9cc6 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 20 Jan 2017 17:46:21 -0800 Subject: [PATCH] anv: Add trivial support for TrimCommandPoolKHR Our command buffers already efficiently use a global pool so trimming doesn't really need to do anything. Reviewed-by: Iago Toral Quiroga Reviewed-by: Lionel Landwerlin --- src/intel/vulkan/anv_cmd_buffer.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/intel/vulkan/anv_cmd_buffer.c b/src/intel/vulkan/anv_cmd_buffer.c index d882c18c608..3a23048c47d 100644 --- a/src/intel/vulkan/anv_cmd_buffer.c +++ b/src/intel/vulkan/anv_cmd_buffer.c @@ -787,6 +787,14 @@ VkResult anv_ResetCommandPool( return VK_SUCCESS; } +void anv_TrimCommandPoolKHR( + VkDevice device, + VkCommandPool commandPool, + VkCommandPoolTrimFlagsKHR flags) +{ + /* Nothing for us to do here. Our pools stay pretty tidy. */ +} + /** * Return NULL if the current subpass has no depthstencil attachment. */ -- 2.30.2