wsi/display: Rework wsi_fence a bit
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 21 Oct 2021 16:32:52 +0000 (11:32 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Tue, 16 Nov 2021 16:54:27 +0000 (10:54 -0600)
commitb1addc425ab705251bfac39aa7d5c516726d0a38
tree387531e69f67ca476d4d4e926939a89bc77f4e7e
parent2bd3434fa237ae8220ba83a9fa6c15f78cb6d6fb
wsi/display: Rework wsi_fence a bit

Get rid of most of the guts of the base class and just leave it as a
vtable.  We can also drop some of wsi_display_fence.  One functional
change here is that we're now using VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE
which is more correct anyway because, thanks to the funky reference
counting we do with destroyed and event_received, its lifetime is tied
to the physical device, at best.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13427>
src/vulkan/wsi/wsi_common.h
src/vulkan/wsi/wsi_common_display.c