vulkan/runtime: Preserve pNext when upgrading to synchronization2 structs
authorChad Versace <chadversary@chromium.org>
Tue, 8 Nov 2022 17:43:50 +0000 (09:43 -0800)
committerMarge Bot <emma+marge@anholt.net>
Tue, 3 Jan 2023 17:20:30 +0000 (17:20 +0000)
commit0a256f79d4600a33c7f8c3e161041b5dcec1fbf0
tree8b3d3d3cf2c165aa1d153449a882f2ebb203744c
parentb0f07a3e856498c05a717b1cfd30c536d8b0d55e
vulkan/runtime: Preserve pNext when upgrading to synchronization2 structs

The functions that upgraded VkFooMemoryBarrier to VkFooMemoryBarrier2
dropped the pNext pointers. It loses VkSampleLocationsInfoEXT, and may
lose additional structs too if VkFooMemoryBarrier receives further
extensions in the future.

Signed-off-by: Chad Versace <chadversary@chromium.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20477>
src/vulkan/runtime/vk_synchronization2.c