summaryrefslogtreecommitdiffstats
path: root/src/vulkan/Makefile.am
diff options
context:
space:
mode:
authorKristian Høgsberg <[email protected]>2015-05-17 16:33:48 -0700
committerKristian Høgsberg <[email protected]>2015-05-18 10:27:02 -0700
commit454345da1e8d22f3612aa3fec6b1cf3027845d48 (patch)
treede26d8cba171dac426041f547a7f1ac6ec6fed06 /src/vulkan/Makefile.am
parent333bcc2072ea5b0ceb0e5092c3b614caf40845e2 (diff)
vk: Add script for generating ifunc entry points
This lets us generate a hash table for vkGetProcAddress and lets us call public functions internally without the public entrypoint overhead.
Diffstat (limited to 'src/vulkan/Makefile.am')
-rw-r--r--src/vulkan/Makefile.am12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/vulkan/Makefile.am b/src/vulkan/Makefile.am
index af2cde5dbbe..8b53a089615 100644
--- a/src/vulkan/Makefile.am
+++ b/src/vulkan/Makefile.am
@@ -62,8 +62,20 @@ libvulkan_la_SOURCES = \
image.c \
meta.c \
intel.c \
+ entrypoints.c \
+ entrypoints.h \
compiler.cpp
+BUILT_SOURCES = entrypoints.h entrypoints.c
+
+entrypoints.h : $(vulkan_include_HEADERS) vk_gen.py
+ $(AM_V_GEN)cat $(vulkan_include_HEADERS) | $(PYTHON2) vk_gen.py header > $@
+
+entrypoints.c : $(vulkan_include_HEADERS) vk_gen.py
+ $(AM_V_GEN)cat $(vulkan_include_HEADERS) | $(PYTHON2) vk_gen.py code > $@
+
+CLEANFILES = entrypoints.h entrypoints.c
+
bin_PROGRAMS = vk
vk_SOURCES = vk.c