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

Author: Mike Blumenkrantz <[email protected]>
Date:   Wed Aug 16 12:54:39 2023 -0400

zink: add a third submitinfo (unused for now)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24962>

---

 src/gallium/drivers/zink/zink_batch.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/zink/zink_batch.c 
b/src/gallium/drivers/zink/zink_batch.c
index bbd06a6ffa6..67b10798f06 100644
--- a/src/gallium/drivers/zink/zink_batch.c
+++ b/src/gallium/drivers/zink/zink_batch.c
@@ -544,7 +544,12 @@ submit_queue(void *data, void *gdata, int thread_index)
    struct zink_batch_state *bs = data;
    struct zink_context *ctx = bs->ctx;
    struct zink_screen *screen = zink_screen(ctx->base.screen);
-   VkSubmitInfo si[2] = {0};
+   /* 3 submit infos:
+    * - waits
+    * - main cmdbuf payload
+    * - signals
+    */
+   VkSubmitInfo si[3] = {0};
    VkSubmitInfo *submit = si;
    int num_si = 2;
    while (!bs->fence.batch_id)
@@ -554,7 +559,7 @@ submit_queue(void *data, void *gdata, int thread_index)
 
    uint64_t batch_id = bs->fence.batch_id;
    /* first submit is just for acquire waits since they have a separate array 
*/
-   si[0].sType = si[1].sType = VK_STRUCTURE_TYPE_SUBMIT_INFO;
+   si[0].sType = si[1].sType = si[2].sType = VK_STRUCTURE_TYPE_SUBMIT_INFO;
    si[0].waitSemaphoreCount = util_dynarray_num_elements(&bs->acquires, 
VkSemaphore);
    si[0].pWaitSemaphores = bs->acquires.data;
    while (util_dynarray_num_elements(&bs->acquire_flags, VkPipelineStageFlags) 
< si[0].waitSemaphoreCount) {

Reply via email to