anv: Add EXT_direct_mode_display to anv driver [v2]

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

v2: Add extension to list in alphabetical order

    Suggested-by:  Jason Ekstrand <jason@jlekstrand.net>

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Keith Packard
2018-02-09 07:38:32 -08:00
parent 352d320a07
commit f89d3874fb
2 changed files with 12 additions and 0 deletions

View File

@@ -111,6 +111,7 @@ EXTENSIONS = [
Extension('VK_KHR_multiview', 1, True),
Extension('VK_KHR_display', 23, 'VK_USE_PLATFORM_DISPLAY_KHR'),
Extension('VK_EXT_debug_report', 8, True),
Extension('VK_EXT_direct_mode_display', 1, 'VK_USE_PLATFORM_DISPLAY_KHR'),
Extension('VK_EXT_external_memory_dma_buf', 1, True),
Extension('VK_EXT_global_priority', 1,
'device->has_context_priority'),

View File

@@ -133,3 +133,14 @@ anv_CreateDisplayPlaneSurfaceKHR(
return wsi_create_display_surface(_instance, alloc, create_info, surface);
}
VkResult
anv_ReleaseDisplayEXT(VkPhysicalDevice physical_device,
VkDisplayKHR display)
{
ANV_FROM_HANDLE(anv_physical_device, pdevice, physical_device);
return wsi_release_display(physical_device,
&pdevice->wsi_device,
display);
}