mesa/src/vulkan
Russell Greene a871eabced wsi/wayland/perfetto: supply presentation clock to perfetto
Perfetto is allowed to choose it's own default clock, and before this we just assumed the presentation times reported by the compositor are the same as perfetto's internal clock, which is not always the case. I got a nasty trace where all the wayland presents were in the wrong location. This fixes that by asking the compositor which clock it uses, then passing that along to perfetto.

A workaround for my compositor was setting use_monotonic_clock=true in the perfetto config, as my compositor (and I suspect most others) use the monotonic clock for presentation timestamps. However, asking the compositor is definitely the most correct solution.

I added a clock param to `MESA_TRACE_TIMESTAMP_{BEGIN,END}`, as it's only use that I could see was in wsi_common_wayland, and in general it seems good to be careful about which clock tracing timestamps come from.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31779>
2024-10-22 21:16:40 +00:00
..
device-select-layer device-select: only try wayland/x11 if the required vars are set 2024-10-18 14:47:10 +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/state: Track the input attachment count 2024-10-17 00:30:44 +00:00
screenshot-layer vulkan/screenshot-layer: Add Vulkan screenshot layer 2024-08-30 02:56:02 +00:00
util vulkan/util: add vk_format_has_float_depth() 2024-10-18 00:56:15 +00:00
wsi wsi/wayland/perfetto: supply presentation clock to perfetto 2024-10-22 21:16:40 +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