Module: Mesa
Branch: master
Commit: 53c6dc504b03a8bab80538d008861a7f14e3592e
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=53c6dc504b03a8bab80538d008861a7f14e3592e

Author: Iago Toral Quiroga <[email protected]>
Date:   Wed Oct 28 10:44:03 2020 +0100

v3dv: implement vkTrimCommandPool

Reviewed-by: Alejandro PiƱeiro <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7364>

---

 src/broadcom/vulkan/v3dv_cmd_buffer.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/broadcom/vulkan/v3dv_cmd_buffer.c 
b/src/broadcom/vulkan/v3dv_cmd_buffer.c
index 2f07eadfb6e..61a3b5c1406 100644
--- a/src/broadcom/vulkan/v3dv_cmd_buffer.c
+++ b/src/broadcom/vulkan/v3dv_cmd_buffer.c
@@ -957,6 +957,17 @@ v3dv_DestroyCommandPool(VkDevice _device,
    vk_free2(&device->alloc, pAllocator, pool);
 }
 
+void
+v3dv_TrimCommandPool(VkDevice device,
+                     VkCommandPool commandPool,
+                     VkCommandPoolTrimFlags flags)
+{
+   /* We don't need to do anything here, our command pools never hold on to
+    * any resources from command buffers that are freed or reset.
+    */
+}
+
+
 static void
 cmd_buffer_subpass_handle_pending_resolves(struct v3dv_cmd_buffer *cmd_buffer)
 {

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to