[Mesa-dev] [PATCH 0/4] Vulkan: generate entry points from vk.xml
Lionel Landwerlin
lionel.g.landwerlin at intel.com
Thu Jan 12 21:43:49 UTC 2017
Hi,
We're currently generating a few vulkan entry point files by parsing
the API files using regular expressions. This is limited for a couple
of reasons :
- function pointer types might not always be declared on a single
line
- if function pointers are declared under conditional flags we
have no way to tell
We can instead use the vk.xml file provided by Khronos [1]. This patch
implements this and also updates headers to latest available versions
(1.0.38).
Cheers,
Lionel
[1] : https://github.com/KhronosGroup/Vulkan-Docs/blob/1.0/src/spec/vk.xml
[2] : https://github.com/djdeath/mesa/tree/vk-xml
Lionel Landwerlin (4):
include: update Vulkan headers
vulkan: add API registry
anv: generate entry points from vk.xml
radv: generate entrypoints from vk.xml
include/vulkan/vk_platform.h | 2 +-
include/vulkan/vulkan.h | 247 +-
src/Makefile.am | 4 +-
src/amd/vulkan/Makefile.am | 14 +-
src/amd/vulkan/radv_entrypoints_gen.py | 105 +-
src/intel/vulkan/Makefile.am | 15 +-
src/intel/vulkan/anv_entrypoints_gen.py | 125 +-
src/vulkan/registry/vk.xml | 4903 +++++++++++++++++++++++++++++++
8 files changed, 5277 insertions(+), 138 deletions(-)
create mode 100644 src/vulkan/registry/vk.xml
--
2.11.0
More information about the mesa-dev
mailing list