anv: Add trivial support for TrimCommandPoolKHR
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 21 Jan 2017 01:46:21 +0000 (17:46 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 24 Jan 2017 20:27:48 +0000 (12:27 -0800)
Our command buffers already efficiently use a global pool so trimming
doesn't really need to do anything.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_cmd_buffer.c

index d882c18c60857b5a74c3c6bf4f306ce5a86112b1..3a23048c47d4e67aaff4d640e4eb59a24092c3d5 100644 (file)
@@ -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.
  */