Mesa (main): zink: stop using VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun Oct 3 14:56:07 UTC 2021


Module: Mesa
Branch: main
Commit: 477855fce450a891709cd2b3c49b97189c15869c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=477855fce450a891709cd2b3c49b97189c15869c

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Fri Sep 24 12:37:40 2021 -0400

zink: stop using VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT

the pool is reset anyway so this is unnecessary

Acked-by: Adam Jackson <ajax at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13145>

---

 src/gallium/drivers/zink/zink_batch.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/gallium/drivers/zink/zink_batch.c b/src/gallium/drivers/zink/zink_batch.c
index 087bf28fd68..a20888927ec 100644
--- a/src/gallium/drivers/zink/zink_batch.c
+++ b/src/gallium/drivers/zink/zink_batch.c
@@ -184,7 +184,6 @@ create_batch_state(struct zink_context *ctx)
    VkCommandPoolCreateInfo cpci = {0};
    cpci.sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO;
    cpci.queueFamilyIndex = screen->gfx_queue;
-   cpci.flags = VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT;
    if (VKSCR(CreateCommandPool)(screen->dev, &cpci, NULL, &bs->cmdpool) != VK_SUCCESS)
       goto fail;
 



More information about the mesa-commit mailing list