mesa/src/vulkan
Pierre-Eric Pelloux-Prayer 9a00a360ad wsi/wl: flush connection on swapchain failure
wayland-client stores up to MAX_FDS_OUT (28) outgoing fds and
then release them in batch later through close_fds.

While this is not a problem in normal situation, because the
app would also have a reference to the same buffers, this is
an issue when these buffers are released (eg: because the
swapchain creation failed).
In this situation wayland-client owns the last ref to these
buffers and prevent their deletion.

This is an issue with dEQP-VK.wsi.wayland.swapchain.simulate_oom.image_extent
because it creates swapchains in a fast loop with a failing allocator
to fail the swapchain creation.
Without this change, on a 16GB dGPU the test peaks at 95% VRAM / 60% GTT and
completes in 1.5 sec.
With this change, the max usage is 65% VRAM / 10% GTT and  completes it
in 0.3 sec.

Reviewed-by: Sebastian Wick <sebastian.wick@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27592>
2024-02-22 14:32:26 +00:00
..
device-select-layer device_select: add shortcut for MESA_VK_DEVICE_SELECT_FORCE_DEFAULT_DEVICE 2023-09-18 07:45:28 +00:00
overlay-layer mesa-overlay: defer listening to socket until first frame 2024-02-09 16:16:24 +00:00
registry vulkan: Update XML and headers to 1.3.278 2024-02-16 17:31:04 +00:00
runtime vk_image.c: #ifndef _WIN32 --> DETECT_OS_LINUX + DETECT_OS_BSD 2024-02-02 23:11:21 +00:00
util vulkan/properties: Start looping from the next member in GPDP2 2024-02-20 09:16:23 +00:00
wsi wsi/wl: flush connection on swapchain failure 2024-02-22 14:32:26 +00:00
meson.build vulkan/wsi: fix build when platform headers are installed in non-standard locations 2023-12-15 18:35:54 +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