[Mesa-dev] [PATCH 2/6] anv: Add trivial support for TrimCommandPoolKHR

Jason Ekstrand jason at jlekstrand.net
Mon Jan 23 22:12:42 UTC 2017


Our command buffers already efficiently use a global pool so trimming
doesn't really need to do anything.
---
 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 d882c18..3a23048 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.5.0.400.gff86faf



More information about the mesa-dev mailing list