anv: let anv_entrypoints_gen.py generate proper Wayland/Xcb guards
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 31 May 2016 13:55:04 +0000 (14:55 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 31 May 2016 17:41:28 +0000 (18:41 +0100)
commitb8e1f59d62bbe9b071c1012fd26a84928f3b0564
tree3c6a332c1a48cf828a4829f5f7e534bde692aafc
parent6bea33008e42040335d5a44359be291f0b5ac24f
anv: let anv_entrypoints_gen.py generate proper Wayland/Xcb guards

The generated sources should follow the example set by the vulkan
headers and our non-generated code. Namely: the code for all supported
platforms should be available, each one guarded by its respective
VK_USE_PLATFORM_*_KHR macro.

v2: Reword commit message.

Cc: Mark Janes <mark.a.janes@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96285
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> (v1 over IRC)
src/intel/vulkan/anv_entrypoints_gen.py