mesa/src/vulkan
Connor Abbott bef37336fb vulkan/queue: Fix VkTimelineSemaphoreSubmitInfo sanitization
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>
2025-08-25 17:57:47 +00:00
..
anti-lag-layer meson: include VkLayer_MESA_anti_lag in the devenv 2025-07-30 23:53:51 +00:00
device-select-layer meson: fix VkLayer_MESA_device_select in the devenv 2025-07-30 23:53:51 +00:00
overlay-layer build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
registry vulkan: Update headers/xml for 1.4.325 2025-08-08 22:41:14 +00:00
runtime vulkan/queue: Fix VkTimelineSemaphoreSubmitInfo sanitization 2025-08-25 17:57:47 +00:00
screenshot-layer build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
util vulkan/util: update common properties code gen to use platform guard 2025-08-12 18:12:50 +00:00
vram-report-limit-layer build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
wsi vulkan/wsi: Always use VK_PIPELINE_STAGE_2_TRANSFER_BIT for semaphore ops 2025-08-22 23:05:05 +00:00
meson.build wsi/display: Expose HDR10 colorspace based on EDID 2025-08-05 08:50:05 +00:00
vulkan-android.sym android/vk: drop unnecessary symbols 2023-03-04 07:41:10 +00:00
vulkan-icd-android-symbols.txt vk: be stricter about symbols check between android and other platforms 2023-03-04 07:41:10 +00:00
vulkan-icd-symbols.txt vk: be stricter about symbols check between android and other platforms 2023-03-04 07:41:10 +00:00
vulkan.sym vk: move radv's linker symbols scripts for use in all drivers 2023-03-04 07:41:10 +00:00
vulkan_api.def.in win32: Fixes 32 bits visual studio module definition files by add script gen_vs_module_defs.py 2022-04-19 19:38:47 +00:00