vulkan/wsi: Move get_images into common code
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 16 Nov 2017 17:56:37 +0000 (09:56 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 4 Dec 2017 18:04:19 +0000 (10:04 -0800)
commit393aa3f6c929fdbcaa599597e28a3206aa09dcc2
treee5a4f32c38620b7edb1856d06e2115e914792ca0
parent1117f843fe6223a50aeedfd943696ac4a7b4691f
vulkan/wsi: Move get_images into common code

This moves bits out of all four corners (anv, radv, x11, wayland) and
into the wsi common code.  We also switch to using an outarray to ensure
we get our return code right.

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_wayland.c
src/vulkan/wsi/wsi_common_x11.c