zink: emit same number of timeline signals as semaphore signals

spec requires these counts/arrays to match, and I did match them, but
it was only in my kopper branch, which didn't propagate back to the
original implementation

Fixes: 32597e116d ("zink: implement GL semaphores")

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14740>
This commit is contained in:
Mike Blumenkrantz 2022-01-26 10:04:43 -05:00 committed by Marge Bot
parent 5974949c0d
commit 794fabc8c2

View file

@ -389,12 +389,14 @@ submit_queue(void *data, void *gdata, int thread_index)
signals[0] = bs->signal_semaphore;
si.pSignalSemaphores = signals;
VkTimelineSemaphoreSubmitInfo tsi = {0};
uint64_t signal_values[2] = {0};
if (bs->have_timelines) {
tsi.sType = VK_STRUCTURE_TYPE_TIMELINE_SEMAPHORE_SUBMIT_INFO;
si.pNext = &tsi;
tsi.signalSemaphoreValueCount = 1;
tsi.pSignalSemaphoreValues = &batch_id;
tsi.pSignalSemaphoreValues = signal_values;
signal_values[si.signalSemaphoreCount] = batch_id;
signals[si.signalSemaphoreCount++] = screen->sem;
tsi.signalSemaphoreValueCount = si.signalSemaphoreCount;
}
struct wsi_memory_signal_submit_info mem_signal = {