mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-11 18:50:17 +01:00
We're supposed to completely ignore VkTimelineSemaphoreSubmitInfo if there aren't any timeline semaphores, including the array lengths, which is made clear by the various VUs already cited by the code. The vkQueueSubmit() path correctly handled this when asserting but still dereferenced pWaitSemaphoreValues unconditionally, which could lead to dereferencing an invalid pointer if waitSemaphoreValueCount is less than waitSemaphoreCount. The vkQueueSparseBind() path didn't even assert correctly. Bring vkQueueSparseBind() in line with vkQueueSubmit() and make both only dereference the wait/signal array once we've determined it must be present. While we're here, also fix the assert in vkQueueSubmit() to disallow a waitSemaphoreValueCount of 0 if there are timeline semaphores present, which conversely is not allowed. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36989> |
||
|---|---|---|
| .. | ||
| anti-lag-layer | ||
| device-select-layer | ||
| overlay-layer | ||
| registry | ||
| runtime | ||
| screenshot-layer | ||
| util | ||
| vram-report-limit-layer | ||
| wsi | ||
| meson.build | ||
| vulkan-android.sym | ||
| vulkan-icd-android-symbols.txt | ||
| vulkan-icd-symbols.txt | ||
| vulkan.sym | ||
| vulkan_api.def.in | ||