vulkan/wsi: Add modifiers support to wsi_create_native_image
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 9 Feb 2018 23:43:27 +0000 (15:43 -0800)
committerDaniel Stone <daniels@collabora.com>
Wed, 21 Feb 2018 22:37:10 +0000 (22:37 +0000)
commitf5433e4d6ce247b86daed741c07aa99f2bd02c0d
tree17fd2fc1f98c4a4b97fbe45b208ffe833e32a40c
parent55b27e1e5f21d62855e955446a63afb5ef8b97a6
vulkan/wsi: Add modifiers support to wsi_create_native_image

This involves extending our fake extension a bit to allow for additional
querying and passing of modifier information.  The added bits are
intended to look a lot like the draft of VK_EXT_image_drm_format_modifier.
Once the extension gets finalized, we'll simply transition all of the
structs used in wsi_common to the real extension structs.

Reviewed-by: Daniel Stone <daniels@collabora.com>
src/vulkan/wsi/wsi_common.c
src/vulkan/wsi/wsi_common.h
src/vulkan/wsi/wsi_common_private.h
src/vulkan/wsi/wsi_common_wayland.c
src/vulkan/wsi/wsi_common_x11.c