vulkan: Make gsk_renderer_realize() work with NULL surface
authorBenjamin Otte <otte@redhat.com>
Wed, 14 Jun 2023 08:18:47 +0000 (10:18 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 19 Jun 2023 12:13:03 +0000 (14:13 +0200)
commit63edecd857b99afd20acc99f62343334eef715c9
treeadd307bf67457db778181c7de8b5529c75581c05
parent515e1642a4b95853edf660f3420bcb59d8d4295e
vulkan: Make gsk_renderer_realize() work with NULL surface

Pretty much copy what GL does and just use the default display to create
GPU-related resources without the need for a display.

This also adds gdk_display_create_vulkan_context() but I've
kept it private because the Vulkan API is generally considered in flux,
in particular with our pending attempts to redo how renderers work.
gdk/gdkdisplay.c
gdk/gdkdisplayprivate.h
gdk/gdkvulkancontext.c
gsk/vulkan/gskvulkanrenderer.c