mesa/src/vulkan
Derek Foreman 2e49448a43 vulkan/wsi/wayland: Move timing calculations to the swapchain
When we create a new swapchain to replace the one currently presenting on
a surface, we need to reset all these timing variables. Otherwise we can
lose track of corrections that were made for the old swapchain when we
delete undelivered presentation feedback results.

Also, we use these variables when queuing a presentation, but we also use
them in the dispatch code that can be called by WaitForPresent from another
thread. We need to protect these variables against concurrent usage.

This is all much easier to do when they're stored as part of the swapchain
instead of the surface, so just move them there and adjust the locking.

Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
Fixes: c26ab1aee1 ("vulkan/wsi/wayland: Pace frames with commit-timing-v1")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32121>
2024-11-22 15:50:35 +00:00
..
device-select-layer vulkan/x11: use xcb_connection_has_error to check for failue 2024-10-29 11:52:37 +00:00
overlay-layer build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
registry vulkan: Update XML and headers to 1.3.296 2024-09-26 11:12:03 +00:00
runtime vulkan: include host write in expanded dst access flags 2024-11-14 19:29:00 +00:00
screenshot-layer vulkan/screenshot-layer: Add region command option 2024-11-14 16:35:24 +00:00
util vulkan: Avoid pointer aliasing 2024-11-16 03:14:31 +00:00
wsi vulkan/wsi/wayland: Move timing calculations to the swapchain 2024-11-22 15:50:35 +00:00
meson.build wsi: Metal support 2024-09-18 17:54:02 +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