vulkan/wsi: Do image creation in common code
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 16 Nov 2017 06:30:20 +0000 (22:30 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 4 Dec 2017 18:04:19 +0000 (10:04 -0800)
commite12688f365258f6f719983528a2af9b6ca4e25c5
tree2db39e32fdfb6cbbe4f1aa27cb94ab7cfd71bc14
parentd50937f137201e1d90ce18bbea1383af7a7ebd5d
vulkan/wsi: Do image creation in common code

This uses the mock extension created in a previous commit to tell the
driver that the image it's just been asked to create is, in fact, a
window system image with whatever assumptions that implies.  There was a
lot of redundant code between the two drivers to do basically exactly
the same thing.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Chad Versace <chadversary@chromium.org>
src/amd/vulkan/radv_wsi.c
src/intel/vulkan/anv_wsi.c
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