radv: expose xlib platform extension
authorDave Airlie <airlied@redhat.com>
Tue, 1 Nov 2016 23:51:43 +0000 (23:51 +0000)
committerDave Airlie <airlied@redhat.com>
Wed, 2 Nov 2016 00:00:38 +0000 (10:00 +1000)
I missed this when I added the xlib code, this allows
dolphin emu to start and crash later.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Cc: "13.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_device.c

index 512d366722d7a42b2f982bcbe9ebdc8cb513544d..58f24ec67644a605a8c49ed885ccd9398c38fcda 100644 (file)
@@ -116,6 +116,12 @@ static const VkExtensionProperties global_extensions[] = {
                .specVersion = 5,
        },
 #endif
+#ifdef VK_USE_PLATFORM_XLIB_KHR
+       {
+               .extensionName = VK_KHR_XLIB_SURFACE_EXTENSION_NAME,
+               .specVersion = 5,
+       },
+#endif
 #ifdef VK_USE_PLATFORM_WAYLAND_KHR
        {
                .extensionName = VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME,