zink: add another submitinfo for fd semaphore waits

these are semaphores created with VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_SYNC_FD_BIT
and can't be cached with the others

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24962>
This commit is contained in:
Mike Blumenkrantz
2023-08-30 16:07:02 -04:00
committed by Marge Bot
parent ed17b6f817
commit 8d3ac89f97

View File

@@ -540,6 +540,7 @@ post_submit(void *data, void *gdata, int thread_index)
typedef enum {
ZINK_SUBMIT_WAIT_ACQUIRE,
ZINK_SUBMIT_WAIT_FD,
ZINK_SUBMIT_CMDBUF,
ZINK_SUBMIT_SIGNAL,
ZINK_SUBMIT_MAX
@@ -573,8 +574,12 @@ submit_queue(void *data, void *gdata, int thread_index)
si[ZINK_SUBMIT_WAIT_ACQUIRE].pWaitDstStageMask = bs->acquire_flags.data;
if (si[ZINK_SUBMIT_WAIT_ACQUIRE].waitSemaphoreCount == 0) {
num_si--;
submit++;
num_si--;
submit++;
if (si[ZINK_SUBMIT_WAIT_FD].waitSemaphoreCount == 0) {
num_si--;
submit++;
}
}
/* then the real submit */