mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-25 02:40:46 +02:00
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:
parent
5974949c0d
commit
794fabc8c2
1 changed files with 4 additions and 2 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue