mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-16 21:58:21 +02:00
Use wl_display_roundtrip() instead of wl_display_flush() when freeing a swapchain to ensure the compositor has processed buffer release events before continuing. wl_display_flush() only sends pending requests without waiting for the compositor to process them. When rapidly creating and destroying large swapchain buffers, buffer references may not be released quickly enough (e.g., during CTS testing), causing memory to accumulate. Using wl_display_roundtrip() ensures synchronization with the compositor, allowing buffers to be released promptly. Signed-off-by: Wei Zhao <Wei.Zhao@amd.com> Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39475> |
||
|---|---|---|
| .. | ||
| anti-lag-layer | ||
| device-select-layer | ||
| overlay-layer | ||
| registry | ||
| runtime | ||
| screenshot-layer | ||
| util | ||
| vram-report-limit-layer | ||
| wsi | ||
| meson.build | ||
| vulkan-android.sym | ||
| vulkan-icd-android-symbols.txt | ||
| vulkan-icd-symbols.txt | ||
| vulkan.sym | ||
| vulkan_api.def.in | ||