mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 22:58:31 +02:00
wsi/wayland: Only use commit timing protocol alongside present time.
Comming timing is meaningless when we cannot receive timing feedback. Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no> Fixes:c26ab1aee1("vulkan/wsi/wayland: Pace frames with commit-timing-v1") Reviewed-by: Autumn Ashton <misyl@froggi.es> Reviewed-by: Derek Foreman <derek.foreman@collabora.com> (cherry picked from commit4dde605924) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32730>
This commit is contained in:
parent
37d72c978f
commit
17c7e04e8a
2 changed files with 2 additions and 2 deletions
|
|
@ -594,7 +594,7 @@
|
|||
"description": "wsi/wayland: Only use commit timing protocol alongside present time.",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "c26ab1aee1dd9a06e17744de7ab6a54530b47ca5",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -3012,7 +3012,7 @@ wsi_wl_surface_create_swapchain(VkIcdSurfaceBase *icd_surface,
|
|||
chain->fifo = wp_fifo_manager_v1_get_fifo(dpy->fifo_manager,
|
||||
chain->wsi_wl_surface->surface);
|
||||
}
|
||||
if (dpy->commit_timing_manager) {
|
||||
if (dpy->commit_timing_manager && chain->present_ids.wp_presentation) {
|
||||
chain->commit_timer = wp_commit_timing_manager_v1_get_timer(dpy->commit_timing_manager,
|
||||
chain->wsi_wl_surface->surface);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue