Skip to content
Snippets Groups Projects
Commit 352d320a authored by Keith Packard's avatar Keith Packard
Browse files

vulkan: Add EXT_direct_mode_display [v2]


Add support for the EXT_direct_mode_display extension. This just
provides the vkReleaseDisplayEXT function.

v2:
	Adopt Jason Ekstrand's coding conventions

	Declare variables at first use, eliminate extra whitespace
	between types and names. Wrap lines to 80 columns.

Suggested-by: default avatarJason Ekstrand <jason.ekstrand@intel.com>

Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
Reviewed-by: default avatarJason Ekstrand <jason@jlekstrand.net>
parent 451b58a5
No related branches found
No related tags found
No related merge requests found
......@@ -1475,3 +1475,21 @@ wsi_display_finish_wsi(struct wsi_device *wsi_device,
vk_free(alloc, wsi);
}
}
/*
* Implement vkReleaseDisplay
*/
VkResult
wsi_release_display(VkPhysicalDevice physical_device,
struct wsi_device *wsi_device,
VkDisplayKHR display)
{
struct wsi_display *wsi =
(struct wsi_display *) wsi_device->wsi[VK_ICD_WSI_PLATFORM_DISPLAY];
if (wsi->fd >= 0) {
close(wsi->fd);
wsi->fd = -1;
}
return VK_SUCCESS;
}
......@@ -82,4 +82,9 @@ wsi_create_display_surface(VkInstance instance,
const VkDisplaySurfaceCreateInfoKHR *pCreateInfo,
VkSurfaceKHR *pSurface);
VkResult
wsi_release_display(VkPhysicalDevice physical_device,
struct wsi_device *wsi_device,
VkDisplayKHR display);
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment