vulkan-wsi-layer/util
Dennis Tsiang 241e05d3e4 Resolve segfault in wsialloc_delete
A segfault can occur if wsialloc_delete is called but m_wsi_allocator's
ion field has not been allocated yet, as the function attempts to access
the ion properties.

This commit resolves the issue by changing m_wsi_allocator to an opaque
struct and removing the fd property, which was not being used.
wsialloc_new is then changed to return a pointer to the struct and
the swapchain then carries this pointer around, which will be
initialised to nullptr in the swapchain constructor.

Change-Id: I202e967cff4555babf0ddcd387275b74470b09d5
Signed-off-by: Dennis Tsiang <dennis.tsiang@arm.com>
2021-05-05 15:44:32 +01:00
..
drm Adds initial support for VK_KHR_wayland_surface. 2021-02-09 18:22:09 +00:00
wsialloc Resolve segfault in wsialloc_delete 2021-05-05 15:44:32 +01:00
custom_allocator.cpp util: add class for storing extensions strings 2021-01-18 10:33:17 +00:00
custom_allocator.hpp util: add class for storing extensions strings 2021-01-18 10:33:17 +00:00
extension_list.cpp layer: improve how layer handles Vulkan extensions 2021-02-05 11:22:32 +00:00
extension_list.hpp util: add class for storing extensions strings 2021-01-18 10:33:17 +00:00
log.cpp Creating logging mechanism for debugging 2021-04-29 16:11:48 +01:00
log.hpp Creating logging mechanism for debugging 2021-04-29 16:11:48 +01:00
platform_set.hpp layer: improve how layer handles Vulkan extensions 2021-02-05 11:22:32 +00:00
timed_semaphore.cpp Initial sources for the vulkan-wsi-layer project 2019-05-31 15:48:05 +01:00
timed_semaphore.hpp Initial sources for the vulkan-wsi-layer project 2019-05-31 15:48:05 +01:00