mesa/src/vulkan/wsi
Chad Versace c085bfcec9 vulkan: Add new cast macros for VkIcd types
We can't import the latest vk_icd.h because the new header breaks the
Mesa build. This patch defines new casting macros,
ICD_DEFINE_NONDISP_HANDLE_CASTS() and ICD_FROM_HANDLE(), which can
handle both the old and new vk_icd.h, and will prevent the build from
breaking when we update the header.

In the old vk_icd.h, types were defined as:

  typedef struct _VkIcdFoo {
    ...
  } VkIcdFoo;

Commit 6ebba1f6 in the Vulkan loader changed the above to

  typedef {
    ...
  } VkIcdFoo;

because the old definitions violated the C and C++ specs. According to
the specs, identifiers that begins with an underscore followed by an
uppercase letter are reserved. (It's pedantic, I know), See the Github
issue referenced below.

References: https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/7
References: 6ebba1f630
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Cc: mesa-stable@lists.freedesktop.org
2017-01-12 09:42:32 -08:00
..
Makefile.am vulkan/wsi: fix out of tree build. 2016-10-19 10:54:42 +10:00
Makefile.sources vulkan/wsi: Add a thread-safe queue implementation 2016-11-10 22:40:44 -08:00
wsi_common.h vulkan: Add new cast macros for VkIcd types 2017-01-12 09:42:32 -08:00
wsi_common_queue.h vulkan/wsi: Fix resource leak in success path of wsi_queue_init() 2016-11-28 21:11:25 +00:00
wsi_common_wayland.c vulkan: Add new cast macros for VkIcd types 2017-01-12 09:42:32 -08:00
wsi_common_wayland.h
wsi_common_x11.c vulkan: Add new cast macros for VkIcd types 2017-01-12 09:42:32 -08:00
wsi_common_x11.h